Lines Matching refs:CurLexer

120   CurLexer.reset(TheLexer);  in EnterSourceFileWithLexer()
130 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer()
132 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
140 Callbacks->FileChanged(CurLexer->getFileLoc(), PPCallbacks::EnterFile, in EnterSourceFileWithLexer()
142 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()
337 const bool LeavingSubmodule = CurLexer && CurLexerSubmodule; in HandleEndOfFile()
347 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
348 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
368 CurLexer->isFirstTimeLexingFile()) { in HandleEndOfFile()
405 !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
417 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
439 assert(CurLexer && "Got EOF but no current lexer set!"); in HandleEndOfFile()
441 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
442 CurLexer.reset(); in HandleEndOfFile()
479 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
480 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
530 assert(CurLexer && "Got EOF but no current lexer set!"); in HandleEndOfFile()
533 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
534 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()
543 if (CurLexer->getFileLoc() == CodeCompletionFileLoc) in HandleEndOfFile()
549 Diag(CurLexer->getFileLoc(), diag::err_pp_through_header_not_seen) in HandleEndOfFile()
555 CurLexer.reset(); in HandleEndOfFile()