[clang] [Clang] Allow diagnostics starting with Arm (PR #98091)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 15:38:13 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (amilendra)

<details>
<summary>Changes</summary>

We (Arm) have a few downstream-only diagnostics that start with Arm, so wish to add Arm to the list of allowed start words.

---
Full diff: https://github.com/llvm/llvm-project/pull/98091.diff


1 Files Affected:

- (modified) clang/utils/TableGen/ClangDiagnosticsEmitter.cpp (+1) 


``````````diff
diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index b290530444d2ab..aec36d4121e6ba 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -1232,6 +1232,7 @@ static bool isExemptAtStart(StringRef Text) {
   // Otherwise, there are a few other exemptions.
   return StringSwitch<bool>(Text)
       .Case("AddressSanitizer", true)
+      .Case("Arm", true)
       .Case("CFString", true)
       .Case("Clang", true)
       .Case("Fuchsia", true)

``````````

</details>


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


More information about the cfe-commits mailing list