Lines Matching refs:CurLexer
109 CurLexer.reset(TheLexer); in EnterSourceFileWithLexer()
117 if (Callbacks && !CurLexer->Is_PragmaLexer) { in EnterSourceFileWithLexer()
119 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
121 Callbacks->FileChanged(CurLexer->getFileLoc(), in EnterSourceFileWithLexer()
227 if (CurLexer) { in PropagateLineStartLeadingSpaceInfo()
228 CurLexer->PropagateLineStartLeadingSpaceInfo(Result); in PropagateLineStartLeadingSpaceInfo()
242 const char *EndPos = CurLexer->BufferEnd; in getCurLexerEndPos()
243 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
248 if (EndPos != CurLexer->BufferStart && in getCurLexerEndPos()
310 const bool LeavingSubmodule = CurLexer && CurLexerSubmodule; in HandleEndOfFile()
320 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
321 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
378 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
389 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
406 assert(CurLexer && "Got EOF but no current lexer set!"); in HandleEndOfFile()
408 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
409 CurLexer.reset(); in HandleEndOfFile()
443 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
444 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
487 assert(CurLexer && "Got EOF but no current lexer set!"); in HandleEndOfFile()
490 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
491 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()
500 if (CurLexer->getFileLoc() == CodeCompletionFileLoc) in HandleEndOfFile()
506 Diag(CurLexer->getFileLoc(), diag::err_pp_through_header_not_seen) in HandleEndOfFile()
512 CurLexer.reset(); in HandleEndOfFile()