[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 24 05:13:20 PDT 2025


================
@@ -178,6 +191,11 @@ multiclass CXXCompat<
                                      "CXX98Compat",
                                      "CXXPre"#std_ver#"Compat"))>,
         DefaultIgnore;
+
+    def : CompatWarningId<
----------------
AaronBallman wrote:

Should we have another layer of abstraction here for C vs C++ vs whatever other language compat warnings?

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


More information about the cfe-commits mailing list