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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 12 05:55:55 PST 2024


================
@@ -555,6 +560,10 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
   void *ArgToStringCookie = nullptr;
   ArgToStringFnTy ArgToStringFn;
 
+  /// Whether the diagnostic should be suppressed in FilePath.
+  llvm::unique_function<bool(diag::kind, llvm::StringRef /*FilePath*/) const>
----------------
AaronBallman wrote:

You can drop the `llvm::` from things in this file as the prevailing style leaves them off already.

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


More information about the cfe-commits mailing list