[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)
Boaz Brickner via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 01:53:52 PDT 2024
================
@@ -946,6 +953,24 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
return (Level)Diags->getDiagnosticLevel(DiagID, Loc, *this);
}
+ /// Diagnostic suppression mappings can be used to ignore diagnostics based on
+ /// the file they occur in. Mapping file is expected to be a special case list
----------------
bricknerb wrote:
How about, instead "to ignore diagnostics based on the file they occur in", say "to avoid generating specific diagnostics in specific files" or perhaps "to suppress" or something similar?
I'm not sure "ignore diagnostics" clarifies the behavior.
https://github.com/llvm/llvm-project/pull/112517
More information about the cfe-commits
mailing list