Searched refs:CurLexer (Results 1 – 5 of 5) sorted by relevance
114 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()124 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer()126 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()134 Callbacks->FileChanged(CurLexer->getFileLoc(), PPCallbacks::EnterFile, in EnterSourceFileWithLexer()136 Callbacks->LexedFileChanged(CurLexer->getFileID(), in EnterSourceFileWithLexer()245 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()246 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo()260 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos()261 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()266 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()[all …]
526 assert(CurLexer && "Conditional PP block but no current lexer set!"); in SkipExcludedConditionalBlock()556 BeginPtr = PP.CurLexer->getBufferLocation(); in SkipExcludedConditionalBlock()559 PP.CurLexer->seek(PP.CurLexer->getCurrentBufferOffset() + *SkipRangePtr, in SkipExcludedConditionalBlock()567 assert(PP.CurLexer->isDependencyDirectivesLexer()); in SkipExcludedConditionalBlock()582 if (CurLexer->isDependencyDirectivesLexer()) { in SkipExcludedConditionalBlock()583 CurLexer->LexDependencyDirectiveTokenWhileSkipping(Tok); in SkipExcludedConditionalBlock()587 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()622 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()625 const char *Hashptr = CurLexer->getBufferLocation() - Tok.getLength(); in SkipExcludedConditionalBlock()626 assert(CurLexer->getSourceLocation(Hashptr) == Tok.getLocation()); in SkipExcludedConditionalBlock()[all …]
432 CurLexer->ReadToEndOfLine(&Buffer); in HandlePragmaMark()814 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()820 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()825 const char *Start = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()829 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()830 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()844 CurLexer->ParsingPreprocessorDirective = true; in HandlePragmaModuleBuild()845 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()862 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()865 assert(CurLexer->getBuffer().begin() <= Start && in HandlePragmaModuleBuild()[all …]
386 if (CurLexer) in recomputeCurLexerKind()387 CurLexerCallback = CurLexer->isDependencyDirectivesLexer() in recomputeCurLexerKind()561 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile()582 std::optional<Token> FirstPPTok = CurLexer->peekNextPPToken(); in EnterMainSourceFile()665 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH()992 if (CurLexer && ++CheckPointCounter == CheckPointStepSize) { in Lex()993 CheckPoints[CurLexer->getFileID()].push_back(CurLexer->BufferPtr); in Lex()1273 CurLexer->cutOffLexing(); in LexAfterModuleImport()
777 std::unique_ptr<Lexer> CurLexer; variable2313 if (CurLexer) in isNextPPTokenOneOf()2314 Val = CurLexer->peekNextPPToken(); in isNextPPTokenOneOf()2550 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()2556 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()2763 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()3106 return P.CurLexer->Lex(Result); in CLK_Lexer()3116 return P.CurLexer->LexDependencyDirectiveToken(Result); in CLK_DependencyDirectivesLexer()