diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:29:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-20 01:29:45 +0000 |
commit | b0262c1e648386cd9faecde3cd065810d5da4ca6 (patch) | |
tree | b9c6ef2c94be13e336316aaa8b36aed6b0244f98 /clang/lib/Lex/PreprocessorLexer.cpp | |
parent | 4ce15e12b9a5c3d8ca43334fef159dfb98a0c94e (diff) | |
download | bcm5719-llvm-b0262c1e648386cd9faecde3cd065810d5da4ca6.tar.gz bcm5719-llvm-b0262c1e648386cd9faecde3cd065810d5da4ca6.zip |
- Default initialize ParsingPreprocessorDirective, ParsingFilename, and
LexingRawMode in the ctor of PreprocessorLexer.
- PTHLexer: Use "LastToken" instead of "NumToken"
llvm-svn: 59690
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PreprocessorLexer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp index 2ce181ef83a..1916f298dbd 100644 --- a/clang/lib/Lex/PreprocessorLexer.cpp +++ b/clang/lib/Lex/PreprocessorLexer.cpp @@ -19,7 +19,10 @@ using namespace clang; PreprocessorLexer::PreprocessorLexer(Preprocessor* pp, SourceLocation L) - : PP(pp), FileID(pp->getSourceManager().getPhysicalLoc(L).getFileID()) {} + : PP(pp), FileID(pp->getSourceManager().getPhysicalLoc(L).getFileID()), + ParsingPreprocessorDirective(false), + ParsingFilename(false), + LexingRawMode(false) {} PreprocessorLexer::~PreprocessorLexer() {} |