[clang] [clang] Diagnose problematic diagnostic messages (PR #93229)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 10:42:08 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 ebc6c28a252915e6689ba7559bdc17eed0eea10c 0052b3ec954b43c954558b5b9a7ff55cf180d14b -- clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 93d4862a46..b290530444 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -1240,7 +1240,7 @@ static bool isExemptAtStart(StringRef Text) {
       .Case("Microsoft", true)
       .Case("Neon", true)
       .StartsWith("NSInvocation", true) // NSInvocation, NSInvocation's
-      .Case("Objective", true)       // Objective-C (hyphen is a word boundary)
+      .Case("Objective", true) // Objective-C (hyphen is a word boundary)
       .Case("OpenACC", true)
       .Case("OpenCL", true)
       .Case("OpenMP", true)

``````````

</details>


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


More information about the cfe-commits mailing list