Handle another case where we should use PTHLexer as an alternative to the normal Lexer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-11-20 16:46:54 +00:00
Родитель 01f0fcd3ea
Коммит dd95d6cca5
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
}