diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-22 02:02:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 02:02:22 +0000 |
commit | 6d27a16b95de79c124e1e4f7096e435a58456dbe (patch) | |
tree | f2379a2b4a590b4209e7152453ffdd686daf0a6b /clang/lib/Lex/PreprocessorLexer.cpp | |
parent | 399f9656ba523d8d37feb3bafb5b3d25338337e1 (diff) | |
download | llvm-6d27a16b95de79c124e1e4f7096e435a58456dbe.zip llvm-6d27a16b95de79c124e1e4f7096e435a58456dbe.tar.gz llvm-6d27a16b95de79c124e1e4f7096e435a58456dbe.tar.bz2 |
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.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp index 1916f29..6e47962 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; } |