summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-20 01:29:45 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-20 01:29:45 +0000
commitb0262c1e648386cd9faecde3cd065810d5da4ca6 (patch)
treeb9c6ef2c94be13e336316aaa8b36aed6b0244f98 /clang/lib/Lex/PreprocessorLexer.cpp
parent4ce15e12b9a5c3d8ca43334fef159dfb98a0c94e (diff)
downloadbcm5719-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.cpp5
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() {}
OpenPOWER on IntegriCloud