diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-16 13:56:47 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-16 13:56:47 +0000 |
commit | 0860a908c0094e3d9d780edba99de486daa77963 (patch) | |
tree | be3b433f1d78b4dcb8172ca6b608085b532a53a5 /include/clang/Basic/DiagnosticLexKinds.td | |
parent | 336ab2f6f1ade86c0b109d2feb8c4db7c31b5ca4 (diff) |
Use the ShowInSystemHeader bit consistently for all diagnostics
By describing system header suppressions directly in tablegen we eliminate
special cases in getDiagnosticSeverity().
Dropping the reliance on builtin diagnostic classes when mapping also gets us
closer to the goal of reusing the diagnostic machinery for custom diagnostics.
No change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 88b4da5d37..4aceaf5e4f 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -247,7 +247,7 @@ def err_invalid_pth_file : Error< let CategoryName = "User Defined Issues" in { def pp_hash_warning : Warning<"%0">, - InGroup<PoundWarning>, DefaultWarnShowInSystemHeader; + InGroup<PoundWarning>, ShowInSystemHeader; def err_pp_hash_error : Error<"%0">; } @@ -544,7 +544,7 @@ def err_pp_eof_in_arc_cf_code_audited : Error< def warn_pp_date_time : Warning< "expansion of date or time macro is not reproducible">, - DefaultWarnShowInSystemHeader, DefaultIgnore, InGroup<DiagGroup<"date-time">>; + ShowInSystemHeader, DefaultIgnore, InGroup<DiagGroup<"date-time">>; // Module map parsing def err_mmap_unknown_token : Error<"skipping stray token">; |