[clang] [llvm] [clang] Clang multi-match behavior of WarningSuppressionMappings (PR #162237)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 10:19:56 PDT 2025
================
@@ -971,7 +971,7 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
/// diagnostics in specific files.
/// 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
+ /// can be used to disable suppression. THe last glob that matches a filepath
----------------
vitalybuka wrote:
And it's very uncommon case ON/OFF with "emit".
I see how it can be theoretically useful and good for completeness, but liky only suppression case is used to temporarily suppression.
https://github.com/llvm/llvm-project/pull/162237
More information about the llvm-commits
mailing list