Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DPPLexerChange.cpp107 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()
228 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
307 if (CurLexer == nullptr) in ResolvePragmaIncludeInstead()
359 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
420 !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
432 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
451 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
452 CurLexer.reset(); in HandleEndOfFile()
489 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
536 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
[all …]
H A DPPDirectives.cpp469 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()
497 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()
508 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
524 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
541 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
703 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
996 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in HandleDirective()
1810 CurLexer->cutOffLexing(); in HandleIncludeDirective()
2111 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleHeaderIncludeOrImport()
2112 CurLexer->cutOffLexing(); in HandleHeaderIncludeOrImport()
[all …]
H A DPragma.cpp421 CurLexer->ReadToEndOfLine(&Buffer); in HandlePragmaMark()
852 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()
858 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
867 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
868 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
883 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
900 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()
904 Start <= CurLexer->getBuffer().end() && in HandlePragmaModuleBuild()
906 End <= CurLexer->getBuffer().end() && in HandlePragmaModuleBuild()
936 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandlePragmaHdrstop()
[all …]
H A DPreprocessor.cpp379 if (CurLexer) in recomputeCurLexerKind()
546 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile()
633 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH()
636 CurLexer->Lex(Tok); in SkipTokensWhileUsingPCH()
894 ReturnedToken = CurLexer->Lex(Result); in Lex()
1216 CurLexer->cutOffLexing(); in LexAfterModuleImport()
H A DPPMacroExpansion.cpp438 if (CurLexer) in isNextPPTokenLParen()
439 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h504 std::unique_ptr<Lexer> CurLexer; variable
2048 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2054 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()
2211 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()