summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PreprocessorLexer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove a sneaky version of Diag hiding in PreprocessorLexer.Chris Lattner2008-11-221-7/+1
| | | | llvm-svn: 59858
* Change the Lexer::Diag method to not magically silence warnings,Chris Lattner2008-11-221-2/+0
| | | | | | | force the caller to check instead. This eliminates the need (and the risk!) of weird null DiagnosticBuilder's floating around. llvm-svn: 59856
* - Default initialize ParsingPreprocessorDirective, ParsingFilename, andTed Kremenek2008-11-201-1/+4
| | | | | | | | LexingRawMode in the ctor of PreprocessorLexer. - PTHLexer: Use "LastToken" instead of "NumToken" llvm-svn: 59690
* - Move static function IsNonPragmaNonMacroLexer into Preprocessor.h.Ted Kremenek2008-11-191-0/+3
| | | | | | | | | | | | | - Add variants of IsNonPragmaNonMacroLexer to accept an IncludeMacroStack entry (simplifies some uses). - Use IsNonPragmaNonMacroLexer in Preprocessor::LookupFile. - Add 'FileID' to PreprocessorLexer, and have Preprocessor query this fileid when looking up the FileEntry for a file Performance testing of -Eonly on Cocoa.h shows no performance regression because of this patch. llvm-svn: 59666
* Remove the last of the old-style Preprocessor::Diag methods.Chris Lattner2008-11-181-1/+1
| | | | llvm-svn: 59554
* Move some diagnostic handling to PreprocessorLexer.Ted Kremenek2008-11-121-0/+7
| | | | llvm-svn: 59191
* Add virtual dtor to PreprocessorLexer.Ted Kremenek2008-11-121-0/+2
| | | | llvm-svn: 59188
* Move LexIncludeFilename from Lexer to PreprocessorLexer.Ted Kremenek2008-11-121-0/+40
PreprocessorLexer now has a virtual method "IndirectLex" which allows it to call the lex method of its subclasses. This is not for performance intensive operations. llvm-svn: 59185
OpenPOWER on IntegriCloud