]> granicus.if.org Git - clang/commitdiff
Handle another case where we should use PTHLexer as an alternative to the normal...
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 16:46:54 +0000 (16:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 16:46:54 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59736 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp

index 89885a7cc42f00a3667b14042ffeb42c49467323..3ce35818f18f0ebb8d660e687fee261b5b4b9153 100644 (file)
@@ -119,6 +119,8 @@ bool Preprocessor::isNextPPTokenLParen() {
       IncludeStackInfo &Entry = IncludeMacroStack[i-1];
       if (Entry.TheLexer)
         Val = Entry.TheLexer->isNextPPTokenLParen();
+      else if (Entry.ThePTHLexer)
+        Val = Entry.ThePTHLexer->isNextPPTokenLParen();
       else
         Val = Entry.TheTokenLexer->isNextTokenLParen();
       
@@ -126,7 +128,7 @@ bool Preprocessor::isNextPPTokenLParen() {
         break;
       
       // Ran off the end of a source file?
-      if (Entry.TheLexer)
+      if (Entry.ThePPLexer)
         return false;
     }
   }