Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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()
252 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
253 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo()
267 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos()
268 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
273 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
[all …]
H A DPPDirectives.cpp500 assert(CurLexer && "Conditional PP block but no current lexer set!"); in SkipExcludedConditionalBlock()
530 BeginPtr = PP.CurLexer->getBufferLocation(); in SkipExcludedConditionalBlock()
533 PP.CurLexer->seek(PP.CurLexer->getCurrentBufferOffset() + *SkipRangePtr, in SkipExcludedConditionalBlock()
541 assert(PP.CurLexer->isDependencyDirectivesLexer()); in SkipExcludedConditionalBlock()
556 if (CurLexer->isDependencyDirectivesLexer()) { in SkipExcludedConditionalBlock()
557 CurLexer->LexDependencyDirectiveTokenWhileSkipping(Tok); in SkipExcludedConditionalBlock()
561 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()
596 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()
599 const char *Hashptr = CurLexer->getBufferLocation() - Tok.getLength(); in SkipExcludedConditionalBlock()
600 assert(CurLexer->getSourceLocation(Hashptr) == Tok.getLocation()); in SkipExcludedConditionalBlock()
[all …]
H A DPragma.cpp436 CurLexer->ReadToEndOfLine(&Buffer); in HandlePragmaMark()
821 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()
827 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
832 const char *Start = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
836 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
837 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
851 CurLexer->ParsingPreprocessorDirective = true; in HandlePragmaModuleBuild()
852 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
869 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()
872 assert(CurLexer->getBuffer().begin() <= Start && in HandlePragmaModuleBuild()
[all …]
H A DPreprocessor.cpp388 if (CurLexer) in recomputeCurLexerKind()
389 CurLexerCallback = CurLexer->isDependencyDirectivesLexer() in recomputeCurLexerKind()
563 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile()
649 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH()
961 if (CurLexer && ++CheckPointCounter == CheckPointStepSize) { in Lex()
962 CheckPoints[CurLexer->getFileID()].push_back(CurLexer->BufferPtr); in Lex()
1242 CurLexer->cutOffLexing(); in LexAfterModuleImport()
H A DPPMacroExpansion.cpp444 if (CurLexer) in isNextPPTokenLParen()
445 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h753 std::unique_ptr<Lexer> CurLexer; variable
2475 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2481 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()
2680 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
3027 return P.CurLexer->Lex(Result); in CLK_Lexer()
3037 return P.CurLexer->LexDependencyDirectiveToken(Result); in CLK_DependencyDirectivesLexer()