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

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

>From f7b07c66341f7ea0fec83d1f72d20b4bdf0bf585 Mon Sep 17 00:00:00 2001
From: Amilendra Kodithuwakku <amilendra.kodithuwa...@arm.com>
Date: Mon, 8 Jul 2024 23:24:10 +0100
Subject: [PATCH] [Clang] Allow diagnostics starting with Arm

---
 clang/utils/TableGen/ClangDiagnosticsEmitter.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 
b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index b290530444d2a..aec36d4121e6b 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)

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to