[clang] [clang-tools-extra] [clangd] Prevent printing huge initializer lists in hover definitions (PR #79746)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 28 05:22:09 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 1b37e8087e1e1ecf5aadd8da536ee17dc21832e2 27bc0b64e17afce3196eb8d8415a8c61619dfae2 -- clang-tools-extra/clangd/Hover.cpp clang-tools-extra/clangd/unittests/HoverTests.cpp clang/lib/AST/StmtPrinter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/unittests/HoverTests.cpp b/clang-tools-extra/clangd/unittests/HoverTests.cpp
index c2d7dd406c..c2d4217230 100644
--- a/clang-tools-extra/clangd/unittests/HoverTests.cpp
+++ b/clang-tools-extra/clangd/unittests/HoverTests.cpp
@@ -3974,7 +3974,6 @@ TEST(Hover, HideBigInitializersIncludedFromThePreamble) {
"int arr[256] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...}");
}
-
#if defined(__aarch64__)
// FIXME: AARCH64 sanitizer buildbots are broken after 72142fbac4.
#define PREDEFINEMACROS_TEST(x) DISABLED_##x
``````````
</details>
https://github.com/llvm/llvm-project/pull/79746
More information about the cfe-commits
mailing list