Home
last modified time | relevance | path

Searched refs:CurLexer (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/lib/Lex/
H A DPPLexerChange.cpp120 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()
252 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
268 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
347 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
405 !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
417 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
441 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
442 CurLexer.reset(); in HandleEndOfFile()
479 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
533 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
[all …]
H A DPPDirectives.cpp532 PP.CurLexer->seek(PP.CurLexer->getCurrentBufferOffset() + *SkipRangePtr, in SkipExcludedConditionalBlock()
560 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()
595 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()
609 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
625 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
642 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
841 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
1137 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in HandleDirective()
1996 CurLexer->cutOffLexing(); in HandleIncludeDirective()
2299 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleHeaderIncludeOrImport()
[all …]
H A DPragma.cpp424 CurLexer->ReadToEndOfLine(&Buffer); in HandlePragmaMark()
809 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()
815 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
824 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
825 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
840 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
857 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()
861 Start <= CurLexer->getBuffer().end() && in HandlePragmaModuleBuild()
863 End <= CurLexer->getBuffer().end() && in HandlePragmaModuleBuild()
893 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandlePragmaHdrstop()
[all …]
H A DPreprocessor.cpp391 if (CurLexer) in recomputeCurLexerKind()
392 CurLexerKind = CurLexer->isDependencyDirectivesLexer() in recomputeCurLexerKind()
560 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile()
646 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH()
649 CurLexer->Lex(Tok); in SkipTokensWhileUsingPCH()
658 CurLexer->LexDependencyDirectiveToken(Tok); in SkipTokensWhileUsingPCH()
912 ReturnedToken = CurLexer->Lex(Result); in Lex()
922 ReturnedToken = CurLexer->LexDependencyDirectiveToken(Result); in Lex()
1251 CurLexer->cutOffLexing(); in LexAfterModuleImport()
H A DPPMacroExpansion.cpp441 if (CurLexer) in isNextPPTokenLParen()
442 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessor.h598 std::unique_ptr<Lexer> CurLexer; variable
2259 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2265 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()
2443 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()