зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
01f0fcd3ea
Коммит
dd95d6cca5
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче