[cfe-commits] r109485 - /cfe/trunk/include/clang/Lex/Preprocessor.h
Ted Kremenek
kremenek at apple.com
Mon Jul 26 19:58:59 PDT 2010
Author: kremenek
Date: Mon Jul 26 21:58:59 2010
New Revision: 109485
URL: http://llvm.org/viewvc/llvm-project?rev=109485&view=rev
Log:
Fix predicate in 'InCachingLexMode' to include 'CurPTHLexer'.
Modified:
cfe/trunk/include/clang/Lex/Preprocessor.h
Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=109485&r1=109484&r2=109485&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Mon Jul 26 21:58:59 2010
@@ -898,7 +898,8 @@
bool InCachingLexMode() const {
// If the Lexer pointers are 0 and IncludeMacroStack is empty, it means
// that we are past EOF, not that we are in CachingLex mode.
- return CurPPLexer == 0 && CurTokenLexer == 0 && !IncludeMacroStack.empty();
+ return CurPPLexer == 0 && CurTokenLexer == 0 && CurPTHLexer == 0 &&
+ !IncludeMacroStack.empty();
}
void EnterCachingLexMode();
void ExitCachingLexMode() {
More information about the cfe-commits
mailing list