Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DPPLexerChange.cpp121 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()
131 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer()
133 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
141 Callbacks->FileChanged(CurLexer->getFileLoc(), PPCallbacks::EnterFile, in EnterSourceFileWithLexer()
143 Callbacks->LexedFileChanged(CurLexer->getFileID(), in EnterSourceFileWithLexer()
253 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
254 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo()
268 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos()
269 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
274 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
[all …]
H A DPPDirectives.cpp509 BeginPtr = PP.CurLexer->getBufferLocation(); in SkipExcludedConditionalBlock()
512 PP.CurLexer->seek(PP.CurLexer->getCurrentBufferOffset() + *SkipRangePtr, in SkipExcludedConditionalBlock()
520 assert(PP.CurLexer->isDependencyDirectivesLexer()); in SkipExcludedConditionalBlock()
535 if (CurLexer->isDependencyDirectivesLexer()) { in SkipExcludedConditionalBlock()
536 CurLexer->LexDependencyDirectiveTokenWhileSkipping(Tok); in SkipExcludedConditionalBlock()
540 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()
575 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()
578 const char *Hashptr = CurLexer->getBufferLocation() - Tok.getLength(); in SkipExcludedConditionalBlock()
579 assert(CurLexer->getSourceLocation(Hashptr) == Tok.getLocation()); in SkipExcludedConditionalBlock()
589 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
[all …]
H A DPragma.cpp425 CurLexer->ReadToEndOfLine(&Buffer); in HandlePragmaMark()
810 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()
816 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
821 const char *Start = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
825 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
826 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
840 CurLexer->ParsingPreprocessorDirective = true; in HandlePragmaModuleBuild()
841 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
858 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()
861 assert(CurLexer->getBuffer().begin() <= Start && in HandlePragmaModuleBuild()
[all …]
H A DPreprocessor.cpp380 if (CurLexer) in recomputeCurLexerKind()
381 CurLexerKind = CurLexer->isDependencyDirectivesLexer() in recomputeCurLexerKind()
556 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile()
642 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH()
645 CurLexer->Lex(Tok); in SkipTokensWhileUsingPCH()
654 CurLexer->LexDependencyDirectiveToken(Tok); in SkipTokensWhileUsingPCH()
886 ReturnedToken = CurLexer->Lex(Result); in Lex()
896 ReturnedToken = CurLexer->LexDependencyDirectiveToken(Result); in Lex()
1250 CurLexer->cutOffLexing(); in LexAfterModuleImport()
H A DPPMacroExpansion.cpp443 if (CurLexer) in isNextPPTokenLParen()
444 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DPreprocessor.h730 std::unique_ptr<Lexer> CurLexer; variable
2432 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2438 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()
2616 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()