Lines Matching refs:CurPPLexer
245 assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?");
247 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/false,
257 CurPPLexer->LexingRawMode = true;
273 while (!CurPPLexer->ConditionalStack.empty()) {
275 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
277 CurPPLexer->ConditionalStack.pop_back();
291 CurPPLexer->ParsingPreprocessorDirective = true;
301 CurPPLexer->ParsingPreprocessorDirective = false;
317 CurPPLexer->ParsingPreprocessorDirective = false;
334 CurPPLexer->ParsingPreprocessorDirective = false;
351 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true,
360 bool InCond = CurPPLexer->popConditionalLevel(CondInfo);
368 CurPPLexer->LexingRawMode = false;
370 CurPPLexer->LexingRawMode = true;
381 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
395 CurPPLexer->LexingRawMode = false;
397 CurPPLexer->LexingRawMode = true;
405 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
408 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
417 assert(CurPPLexer->LexingRawMode && "We have to be skipping here!");
418 CurPPLexer->LexingRawMode = false;
421 CurPPLexer->LexingRawMode = true;
423 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
440 CurPPLexer->ParsingPreprocessorDirective = false;
448 CurPPLexer->LexingRawMode = false;
600 if ((CurFileEnt = SourceMgr.getFileEntryForID(CurPPLexer->getFileID())))
653 CurPPLexer->ParsingPreprocessorDirective = true;
657 CurPPLexer->MIOpt.getImmediatelyAfterTopLevelIfndef();
658 CurPPLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef();
665 bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal();
709 CurPPLexer->getConditionalStackDepth() > 0);
941 Callbacks->FileChanged(CurPPLexer->getSourceLocation(),
1095 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind);
1337 CurPPLexer->LexIncludeFilename(FilenameTok);
1826 CurPPLexer->MIOpt.SetDefinedMacro(MacroNameTok.getIdentifierInfo(),
1841 if (CurPPLexer->ParsingPreprocessorDirective)
2126 if (CurPPLexer->getConditionalStackDepth() == 0) {
2133 CurPPLexer->MIOpt.EnterTopLevelIfndef(MII, MacroNameTok.getLocation());
2135 CurPPLexer->MIOpt.EnterTopLevelConditional();
2152 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(),
2171 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2173 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2177 if (CurPPLexer->getConditionalStackDepth() == 0) {
2180 CurPPLexer->MIOpt.EnterTopLevelIfndef(IfNDefMacro, IfToken.getLocation());
2182 CurPPLexer->MIOpt.EnterTopLevelConditional();
2193 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false,
2211 if (CurPPLexer->popConditionalLevel(CondInfo)) {
2218 if (CurPPLexer->getConditionalStackDepth() == 0)
2219 CurPPLexer->MIOpt.ExitTopLevelConditional();
2221 assert(!CondInfo.WasSkipping && !CurPPLexer->LexingRawMode &&
2237 if (CurPPLexer->popConditionalLevel(CI)) {
2243 if (CurPPLexer->getConditionalStackDepth() == 0)
2244 CurPPLexer->MIOpt.EnterTopLevelConditional();
2265 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2267 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2270 if (CurPPLexer->popConditionalLevel(CI)) {
2276 if (CurPPLexer->getConditionalStackDepth() == 0)
2277 CurPPLexer->MIOpt.EnterTopLevelConditional();