[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

Boaz Brickner via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 06:21:15 PST 2024


================
@@ -477,6 +486,118 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor,
       setSeverity(Diag, Map, Loc);
 }
 
+namespace {
+class WarningsSpecialCaseList : public llvm::SpecialCaseList {
+public:
+  static std::unique_ptr<WarningsSpecialCaseList>
+  create(const llvm::MemoryBuffer &MB, std::string &Err) {
+    auto SCL = std::make_unique<WarningsSpecialCaseList>();
----------------
bricknerb wrote:

Replace SCL with WarningSuppressionList

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


More information about the llvm-commits mailing list