reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
968 return CurPPLexer == L; 975 PreprocessorLexer *getCurrentLexer() const { return CurPPLexer; } 1991 std::move(CurLexer), CurPPLexer, 1993 CurPPLexer = nullptr; 1998 CurPPLexer = IncludeMacroStack.back().ThePPLexer; 2154 return IsFileLexer(CurLexer.get(), CurPPLexer); 2164 return !CurPPLexer && !CurTokenLexer && !IncludeMacroStack.empty();tools/clang/lib/Lex/PPDirectives.cpp
418 assert(!CurTokenLexer && CurPPLexer && "Lexing a macro, not a file?"); 423 CurPPLexer->pushConditionalLevel(IfTokenLoc, /*isSkipping*/ false, 428 CurPPLexer->LexingRawMode = true; 463 CurPPLexer->ParsingPreprocessorDirective = true; 473 CurPPLexer->ParsingPreprocessorDirective = false; 489 CurPPLexer->ParsingPreprocessorDirective = false; 506 CurPPLexer->ParsingPreprocessorDirective = false; 523 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, 532 bool InCond = CurPPLexer->popConditionalLevel(CondInfo); 540 CurPPLexer->LexingRawMode = false; 542 CurPPLexer->LexingRawMode = true; 553 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); 567 CurPPLexer->LexingRawMode = false; 569 CurPPLexer->LexingRawMode = true; 577 PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); 589 assert(CurPPLexer->LexingRawMode && "We have to be skipping here!"); 590 CurPPLexer->LexingRawMode = false; 594 CurPPLexer->LexingRawMode = true; 610 CurPPLexer->ParsingPreprocessorDirective = false; 618 CurPPLexer->LexingRawMode = false; 624 SourceRange(HashTokenLoc, CurPPLexer->getSourceLocation()), 814 if ((CurFileEnt = CurPPLexer->getFileEntry())) { 905 CurPPLexer->ParsingPreprocessorDirective = true; 909 CurPPLexer->MIOpt.getImmediatelyAfterTopLevelIfndef(); 910 CurPPLexer->MIOpt.resetImmediatelyAfterTopLevelIfndef(); 917 bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal(); 967 CurPPLexer->getConditionalStackDepth() > 0); 1220 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), 1372 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind); 2237 assert(CurPPLexer && "#include_next directive in macro?"); 2238 LookupFromFile = CurPPLexer->getFileEntry(); 2482 CurPPLexer->MIOpt.SetDefinedMacro(MacroNameTok.getIdentifierInfo(), 2879 if (CurPPLexer->getConditionalStackDepth() == 0) { 2886 CurPPLexer->MIOpt.EnterTopLevelIfndef(MII, MacroNameTok.getLocation()); 2888 CurPPLexer->MIOpt.EnterTopLevelConditional(); 2909 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), 2914 CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), 2940 if (CurPPLexer->getConditionalStackDepth() == 0) { 2943 CurPPLexer->MIOpt.EnterTopLevelIfndef(IfNDefMacro, IfToken.getLocation()); 2945 CurPPLexer->MIOpt.EnterTopLevelConditional(); 2960 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false, 2964 CurPPLexer->pushConditionalLevel(IfToken.getLocation(), /*wasskip*/false, 2983 if (CurPPLexer->popConditionalLevel(CondInfo)) { 2990 if (CurPPLexer->getConditionalStackDepth() == 0) 2991 CurPPLexer->MIOpt.ExitTopLevelConditional(); 2993 assert(!CondInfo.WasSkipping && !CurPPLexer->LexingRawMode && 3009 if (CurPPLexer->popConditionalLevel(CI)) { 3015 if (CurPPLexer->getConditionalStackDepth() == 0) 3016 CurPPLexer->MIOpt.EnterTopLevelConditional(); 3030 CurPPLexer->pushConditionalLevel(CI.IfLoc, /*wasskip*/false, 3053 if (CurPPLexer->popConditionalLevel(CI)) { 3059 if (CurPPLexer->getConditionalStackDepth() == 0) 3060 CurPPLexer->MIOpt.EnterTopLevelConditional(); 3075 CurPPLexer->pushConditionalLevel(ElifToken.getLocation(), /*wasskip*/false,tools/clang/lib/Lex/PPLexerChange.cpp
52 return CurPPLexer; 105 if (CurPPLexer || CurTokenLexer) 109 CurPPLexer = TheLexer; 330 if (CurPPLexer) { // Not ending a macro, ignore it. 332 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { 334 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { 340 CurPPLexer->MIOpt.GetDefinedMacro()) { 359 Diag(CurPPLexer->MIOpt.GetMacroLocation(), 361 << CurPPLexer->MIOpt.GetMacroLocation() << ControllingMacro; 362 Diag(CurPPLexer->MIOpt.GetDefinedLocation(), 364 << CurPPLexer->MIOpt.GetDefinedLocation() << DefinedMacro 367 CurPPLexer->MIOpt.GetDefinedLocation(), 406 if (isCodeCompletionEnabled() && CurPPLexer && 407 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == 414 CurPPLexer = nullptr; 419 if (!isEndOfMacro && CurPPLexer && 420 SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid()) { 425 CurPPLexer->getInitialNumSLocEntries() + 1/*#include'd file*/; 426 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs); 431 if (!isEndOfMacro && CurPPLexer) { 432 ExitedFID = CurPPLexer->getFileID(); 453 if (CurPPLexer && creatingPCHWithThroughHeader() && 455 SourceMgr.getFileEntryForID(CurPPLexer->getFileID()))) 465 if (Callbacks && !isEndOfMacro && CurPPLexer) { 467 SourceMgr.getFileCharacteristic(CurPPLexer->getSourceLocation()); 468 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), 477 if (!isEndOfMacro && CurPPLexer && FoundPCHThroughHeader && 479 CurPPLexer->getFileID() == getPredefinesFileID())) { 518 CurPPLexer = nullptr; 547 assert(CurTokenLexer && !CurPPLexer && 585 assert(CurTokenLexer && !CurPPLexer &&tools/clang/lib/Lex/PPMacroExpansion.cpp
439 if (CurPPLexer) 471 if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro(); 471 if (CurPPLexer) CurPPLexer->MIOpt.ExpandedMacro();tools/clang/lib/Lex/Pragma.cpp
175 || (CurPPLexer && CurPPLexer->ParsingPreprocessorDirective)) 175 || (CurPPLexer && CurPPLexer->ParsingPreprocessorDirective)) 410 assert(CurPPLexer && "No current lexer?"); 424 if (CurPPLexer) CurPPLexer->LexingRawMode = true; 424 if (CurPPLexer) CurPPLexer->LexingRawMode = true; 426 if (CurPPLexer) CurPPLexer->LexingRawMode = false; 426 if (CurPPLexer) CurPPLexer->LexingRawMode = false;tools/clang/lib/Lex/Preprocessor.cpp
670 assert(CurPPLexer && 672 CurPPLexer->setConditionalLevels(PreambleConditionalStack.getStack()); 818 if (II.isPoisoned() && CurPPLexer) { 977 if (CurPPLexer) 978 CurPPLexer->LexIncludeFilename(FilenameTok);