================ @@ -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 + /// with sections denoting diagnostic groups and `src` entries for globs to + /// suppress. `emit` category can be used to disable suppression. Longest glob + /// that matches a filepath takes precendence. For example: + /// [unused] + /// src:*clang/* + /// src:*clang/foo/*=emit + /// src:*clang/foo/bar/* + /// + /// Such a mappings file suppress all diagnostics produced by -Wunused in all + /// sources under `clang/` directory apart from `clang/foo/`. Diagnostics ---------------- kadircet wrote:
fair point updated the comment. https://github.com/llvm/llvm-project/pull/112517 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits