]> granicus.if.org Git - clang/commitdiff
Fix predicate in 'InCachingLexMode' to include 'CurPTHLexer'.
authorTed Kremenek <kremenek@apple.com>
Tue, 27 Jul 2010 02:58:59 +0000 (02:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 27 Jul 2010 02:58:59 +0000 (02:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109485 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h

index 380f788d22a5c73697ab59360836f6ec48b41506..debba38a7020c9a409d5d5d74fd43e7074551a78 100644 (file)
@@ -898,7 +898,8 @@ private:
   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() {