Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPPLexerChange.cpp105 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()
113 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer()
115 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
117 Callbacks->FileChanged(CurLexer->getFileLoc(), in EnterSourceFileWithLexer()
226 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
227 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo()
241 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos()
242 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
247 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
311 const bool LeavingSubmodule = CurLexer && CurLexerSubmodule; in HandleEndOfFile()
[all …]
H A DPPDirectives.cpp418 unsigned CurLexerBufferOffset = CurLexer->getCurrentBufferOffset(); in getSkippedRangeForExcludedConditionalBlock()
457 CurLexer->skipOver(*SkipLength); in SkipExcludedConditionalBlock()
461 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock()
489 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock()
500 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
516 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
533 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
640 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock()
933 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in HandleDirective()
1413 CurLexer->ReadToEndOfLine(&Message); in HandleUserDiagnosticDirective()
[all …]
H A DPragma.cpp417 CurLexer->ReadToEndOfLine(); in HandlePragmaMark()
801 CurLexer->LexingRawMode = true; in HandlePragmaModuleBuild()
807 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
812 const char *Start = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
816 End = CurLexer->getBufferLocation(); in HandlePragmaModuleBuild()
817 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
831 CurLexer->ParsingPreprocessorDirective = true; in HandlePragmaModuleBuild()
832 CurLexer->Lex(Tok); in HandlePragmaModuleBuild()
849 CurLexer->LexingRawMode = false; in HandlePragmaModuleBuild()
852 assert(CurLexer->getBuffer().begin() <= Start && in HandlePragmaModuleBuild()
[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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DPreprocessor.h502 std::unique_ptr<Lexer> CurLexer; variable
2046 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack()
2052 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack()
2209 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()