summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-16 13:56:47 +0000
committerAlp Toker <alp@nuanti.com>2014-06-16 13:56:47 +0000
commit04278ece9e3162fa72421dd13de366fa67c8ff88 (patch)
tree4388c6652518c045895cbf03f85bdbd18b8337bf /clang/utils
parent998d991b2d9ade805aeeb863bf85e93cb91d16f7 (diff)
downloadbcm5719-llvm-04278ece9e3162fa72421dd13de366fa67c8ff88.tar.gz
bcm5719-llvm-04278ece9e3162fa72421dd13de366fa67c8ff88.zip
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. llvm-svn: 211023
Diffstat (limited to 'clang/utils')
-rw-r--r--clang/utils/TableGen/ClangDiagnosticsEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 76b484e7837..e5177554177 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -571,8 +571,7 @@ void EmitClangDiagsDefs(RecordKeeper &Records, raw_ostream &OS,
else
OS << ", false";
- // Default warning show in system header bit.
- if (R.getValueAsBit("WarningShowInSystemHeader"))
+ if (R.getValueAsBit("ShowInSystemHeader"))
OS << ", true";
else
OS << ", false";
OpenPOWER on IntegriCloud