Searched refs:CurLexer (Results 1 – 12 of 12) sorted by relevance
/external/llvm-project/clang/lib/Lex/ |
D | PPLexerChange.cpp | 105 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 …]
|
D | Pragma.cpp | 417 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 …]
|
D | PPDirectives.cpp | 397 unsigned CurLexerBufferOffset = CurLexer->getCurrentBufferOffset(); in getSkippedRangeForExcludedConditionalBlock() 436 CurLexer->skipOver(*SkipLength); in SkipExcludedConditionalBlock() 440 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock() 468 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock() 479 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 495 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 512 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 616 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 909 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in HandleDirective() 1389 CurLexer->ReadToEndOfLine(&Message); in HandleUserDiagnosticDirective() [all …]
|
D | Preprocessor.cpp | 383 if (CurLexer) in recomputeCurLexerKind() 550 CurLexer->SetByteOffset(SkipMainFilePreamble.first, in EnterMainSourceFile() 637 (CurLexer && CurLexer->getFileID() == getPredefinesFileID()); in SkipTokensWhileUsingPCH() 640 CurLexer->Lex(Tok); in SkipTokensWhileUsingPCH() 898 ReturnedToken = CurLexer->Lex(Result); in Lex() 1220 CurLexer->cutOffLexing(); in LexAfterModuleImport()
|
D | PPMacroExpansion.cpp | 436 if (CurLexer) in isNextPPTokenLParen() 437 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
|
/external/clang/lib/Lex/ |
D | PPLexerChange.cpp | 118 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer() 126 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer() 128 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer() 130 Callbacks->FileChanged(CurLexer->getFileLoc(), in EnterSourceFileWithLexer() 261 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo() 262 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo() 276 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos() 277 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos() 282 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos() 351 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile() [all …]
|
D | PPDirectives.cpp | 386 CurLexer->Lex(Tok); in SkipExcludedConditionalBlock() 400 if (CurLexer->getFileLoc() != CodeCompletionFileLoc) in SkipExcludedConditionalBlock() 418 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in SkipExcludedConditionalBlock() 429 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 445 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 462 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 566 if (CurLexer) CurLexer->resetExtendedTokenMode(); in SkipExcludedConditionalBlock() 905 if (CurLexer) CurLexer->SetKeepWhitespaceMode(false); in HandleDirective() 1370 CurLexer->ReadToEndOfLine(&Message); in HandleUserDiagnosticDirective() 1914 if (CurLexer) { in HandleIncludeDirective() [all …]
|
D | Preprocessor.cpp | 362 if (CurLexer) in recomputeCurLexerKind() 512 CurLexer->SkipBytes(SkipMainFilePreamble.first, in EnterMainSourceFile() 728 ReturnedToken = CurLexer->Lex(Result); in Lex()
|
D | Pragma.cpp | 369 if (CurLexer) in HandlePragmaMark() 370 CurLexer->ReadToEndOfLine(); in HandlePragmaMark()
|
D | PPMacroExpansion.cpp | 380 if (CurLexer) in isNextPPTokenLParen() 381 Val = CurLexer->isNextPPTokenLParen(); in isNextPPTokenLParen()
|
/external/clang/include/clang/Lex/ |
D | Preprocessor.h | 284 std::unique_ptr<Lexer> CurLexer; variable 1693 CurLexerKind, CurSubmodule, std::move(CurLexer), std::move(CurPTHLexer), in PushIncludeMacroStack() 1699 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack() 1841 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | Preprocessor.h | 502 std::unique_ptr<Lexer> CurLexer; variable 2041 std::move(CurLexer), CurPPLexer, in PushIncludeMacroStack() 2047 CurLexer = std::move(IncludeMacroStack.back().TheLexer); in PopIncludeMacroStack() 2204 return IsFileLexer(CurLexer.get(), CurPPLexer); in IsFileLexer()
|