Home | History | Annotate | Download | only in Lex

Lines Matching refs:CurPPLexer

300   assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?");
302 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/false,
312 CurPPLexer->LexingRawMode = true;
328 while (!CurPPLexer->ConditionalStack.empty()) {
330 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
332 CurPPLexer->ConditionalStack.pop_back();
346 CurPPLexer->ParsingPreprocessorDirective = true;
356 CurPPLexer->ParsingPreprocessorDirective = false;
372 CurPPLexer->ParsingPreprocessorDirective = false;
389 CurPPLexer->ParsingPreprocessorDirective = false;
406 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true,
415 bool InCond = CurPPLexer->popConditionalLevel(CondInfo);
423 CurPPLexer->LexingRawMode = false;
425 CurPPLexer->LexingRawMode = true;
436 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
450 CurPPLexer->LexingRawMode = false;
452 CurPPLexer->LexingRawMode = true;
460 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel();
470 const SourceLocation CondBegin = CurPPLexer->getSourceLocation();
473 assert(CurPPLexer->LexingRawMode && "We have to be skipping here!");
474 CurPPLexer->LexingRawMode = false;
477 CurPPLexer->LexingRawMode = true;
479 const SourceLocation CondEnd = CurPPLexer->getSourceLocation();
493 CurPPLexer->ParsingPreprocessorDirective = false;
501 CurPPLexer->LexingRawMode = false;
702 if ((CurFileEnt = SourceMgr.getFileEntryForID(CurPPLexer->getFileID()))) {
765 CurPPLexer->ParsingPreprocessorDirective = true;
769 CurPPLexer->MIOpt.getImmediatelyAfterTopLevelIfndef();
770 CurPPLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef();
777 bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal();
822 CurPPLexer->getConditionalStackDepth() > 0);
1059 Callbacks->FileChanged(CurPPLexer->getSourceLocation(),
1213 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind);
1468 CurPPLexer->LexIncludeFilename(FilenameTok);
1812 assert(CurPPLexer && "#include_next directive in macro?");
1813 LookupFromFile = CurPPLexer->getFileEntry();
2056 CurPPLexer->MIOpt.SetDefinedMacro(MacroNameTok.getIdentifierInfo(),
2069 if (CurPPLexer->ParsingPreprocessorDirective)
2350 if (CurPPLexer->getConditionalStackDepth() == 0) {
2357 CurPPLexer->MIOpt.EnterTopLevelIfndef(MII, MacroNameTok.getLocation());
2359 CurPPLexer->MIOpt.EnterTopLevelConditional();
2376 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(),
2395 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2397 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2401 if (CurPPLexer->getConditionalStackDepth() == 0) {
2404 CurPPLexer->MIOpt.EnterTopLevelIfndef(IfNDefMacro, IfToken.getLocation());
2406 CurPPLexer->MIOpt.EnterTopLevelConditional();
2417 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false,
2435 if (CurPPLexer->popConditionalLevel(CondInfo)) {
2442 if (CurPPLexer->getConditionalStackDepth() == 0)
2443 CurPPLexer->MIOpt.ExitTopLevelConditional();
2445 assert(!CondInfo.WasSkipping && !CurPPLexer->LexingRawMode &&
2461 if (CurPPLexer->popConditionalLevel(CI)) {
2467 if (CurPPLexer->getConditionalStackDepth() == 0)
2468 CurPPLexer->MIOpt.EnterTopLevelConditional();
2489 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation();
2491 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation();
2494 if (CurPPLexer->popConditionalLevel(CI)) {
2500 if (CurPPLexer->getConditionalStackDepth() == 0)
2501 CurPPLexer->MIOpt.EnterTopLevelConditional();