Lines Matching refs:CurPPLexer
377 assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?"); in SkipExcludedConditionalBlock()
382 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/ false, in SkipExcludedConditionalBlock()
387 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
417 CurPPLexer->ParsingPreprocessorDirective = true; in SkipExcludedConditionalBlock()
427 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
443 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
460 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
477 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
486 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); in SkipExcludedConditionalBlock()
494 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
496 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
507 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); in SkipExcludedConditionalBlock()
521 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
523 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
531 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); in SkipExcludedConditionalBlock()
541 const SourceLocation CondBegin = CurPPLexer->getSourceLocation(); in SkipExcludedConditionalBlock()
544 assert(CurPPLexer->LexingRawMode && "We have to be skipping here!"); in SkipExcludedConditionalBlock()
545 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
548 CurPPLexer->LexingRawMode = true; in SkipExcludedConditionalBlock()
550 const SourceLocation CondEnd = CurPPLexer->getSourceLocation(); in SkipExcludedConditionalBlock()
564 CurPPLexer->ParsingPreprocessorDirective = false; in SkipExcludedConditionalBlock()
572 CurPPLexer->LexingRawMode = false; in SkipExcludedConditionalBlock()
578 SourceRange(HashTokenLoc, CurPPLexer->getSourceLocation()), in SkipExcludedConditionalBlock()
752 if ((CurFileEnt = CurPPLexer->getFileEntry())) { in LookupFile()
844 CurPPLexer->ParsingPreprocessorDirective = true; in HandleDirective()
848 CurPPLexer->MIOpt.getImmediatelyAfterTopLevelIfndef(); in HandleDirective()
849 CurPPLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef(); in HandleDirective()
856 bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal(); in HandleDirective()
904 CurPPLexer->getConditionalStackDepth() > 0); in HandleDirective()
1152 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), in HandleLineDirective()
1299 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind); in HandleDigitDirective()
1654 CurPPLexer->LexIncludeFilename(FilenameTok); in HandleIncludeDirective()
2105 assert(CurPPLexer && "#include_next directive in macro?"); in HandleIncludeNextDirective()
2106 LookupFromFile = CurPPLexer->getFileEntry(); in HandleIncludeNextDirective()
2341 CurPPLexer->MIOpt.SetDefinedMacro(MacroNameTok.getIdentifierInfo(), in ReadOptionalMacroParameterListAndBody()
2354 if (CurPPLexer->ParsingPreprocessorDirective) in ReadOptionalMacroParameterListAndBody()
2741 if (CurPPLexer->getConditionalStackDepth() == 0) { in HandleIfdefDirective()
2748 CurPPLexer->MIOpt.EnterTopLevelIfndef(MII, MacroNameTok.getLocation()); in HandleIfdefDirective()
2750 CurPPLexer->MIOpt.EnterTopLevelConditional(); in HandleIfdefDirective()
2768 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), in HandleIfdefDirective()
2773 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), in HandleIfdefDirective()
2794 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation(); in HandleIfDirective()
2797 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation(); in HandleIfDirective()
2801 if (CurPPLexer->getConditionalStackDepth() == 0) { in HandleIfDirective()
2804 CurPPLexer->MIOpt.EnterTopLevelIfndef(IfNDefMacro, IfToken.getLocation()); in HandleIfDirective()
2806 CurPPLexer->MIOpt.EnterTopLevelConditional(); in HandleIfDirective()
2818 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false, in HandleIfDirective()
2822 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false, in HandleIfDirective()
2841 if (CurPPLexer->popConditionalLevel(CondInfo)) { in HandleEndifDirective()
2848 if (CurPPLexer->getConditionalStackDepth() == 0) in HandleEndifDirective()
2849 CurPPLexer->MIOpt.ExitTopLevelConditional(); in HandleEndifDirective()
2851 assert(!CondInfo.WasSkipping && !CurPPLexer->LexingRawMode && in HandleEndifDirective()
2867 if (CurPPLexer->popConditionalLevel(CI)) { in HandleElseDirective()
2873 if (CurPPLexer->getConditionalStackDepth() == 0) in HandleElseDirective()
2874 CurPPLexer->MIOpt.EnterTopLevelConditional(); in HandleElseDirective()
2885 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, in HandleElseDirective()
2905 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation(); in HandleElifDirective()
2907 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation(); in HandleElifDirective()
2910 if (CurPPLexer->popConditionalLevel(CI)) { in HandleElifDirective()
2916 if (CurPPLexer->getConditionalStackDepth() == 0) in HandleElifDirective()
2917 CurPPLexer->MIOpt.EnterTopLevelConditional(); in HandleElifDirective()
2930 CurPPLexer->pushConditionalLevel(ElifToken.getLocation(), /*wasskip*/false, in HandleElifDirective()