summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 02:02:22 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 02:02:22 +0000
commit6d27a16b95de79c124e1e4f7096e435a58456dbe (patch)
treef2379a2b4a590b4209e7152453ffdd686daf0a6b /clang/lib/Lex/PreprocessorLexer.cpp
parent399f9656ba523d8d37feb3bafb5b3d25338337e1 (diff)
downloadbcm5719-llvm-6d27a16b95de79c124e1e4f7096e435a58456dbe.tar.gz
bcm5719-llvm-6d27a16b95de79c124e1e4f7096e435a58456dbe.zip
Change the Lexer::Diag method to not magically silence warnings,
force the caller to check instead. This eliminates the need (and the risk!) of weird null DiagnosticBuilder's floating around. llvm-svn: 59856
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r--clang/lib/Lex/PreprocessorLexer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp
index 1916f298dbd..6e479625e0f 100644
--- a/clang/lib/Lex/PreprocessorLexer.cpp
+++ b/clang/lib/Lex/PreprocessorLexer.cpp
@@ -28,8 +28,6 @@ PreprocessorLexer::~PreprocessorLexer() {}
void PreprocessorLexer::Diag(SourceLocation Loc, unsigned DiagID,
const std::string &Msg) const {
- if (LexingRawMode && Diagnostic::isBuiltinNoteWarningOrExtension(DiagID))
- return;
PP->Diag(Loc, DiagID) << Msg;
}
OpenPOWER on IntegriCloud