[clang] [polly] [clang-format] Correctly annotate braces in macros (PR #87953)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 7 17:47:32 PDT 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 943db678dadd6088629d08ec3e582bea0595f2d2 6d0c7e5602a227b1b7310be46553aa689e6a93e7 -- clang/lib/Format/UnwrappedLineParser.cpp clang/unittests/Format/FormatTest.cpp clang/unittests/Format/TokenAnnotatorTest.cpp polly/lib/Analysis/ScopDetectionDiagnostic.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
index d2fbcf7319..30fbd17c78 100644
--- a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
+++ b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
@@ -45,7 +45,7 @@ using namespace llvm;
 #define DEBUG_TYPE "polly-detect"
 
 #define SCOP_STAT(NAME, DESC)                                                  \
-  {"polly-detect", "NAME", "Number of rejected regions: " DESC}
+  { "polly-detect", "NAME", "Number of rejected regions: " DESC }
 
 static Statistic RejectStatistics[] = {
     SCOP_STAT(CFG, ""),

``````````

</details>


https://github.com/llvm/llvm-project/pull/87953


More information about the cfe-commits mailing list