Lines Matching refs:CurLexer

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()
362 !isEndOfMacro && !(CurLexer && CurLexer->Is_PragmaLexer)) { in HandleEndOfFile()
377 if (CurLexer) { in HandleEndOfFile()
379 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); in HandleEndOfFile()
380 CurLexer.reset(); in HandleEndOfFile()
405 bool LeavingSubmodule = CurSubmodule && CurLexer; in HandleEndOfFile()
410 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
411 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); in HandleEndOfFile()
438 if (CurLexer) { in HandleEndOfFile()
441 CurLexer->BufferPtr = EndPos; in HandleEndOfFile()
442 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); in HandleEndOfFile()
451 if (CurLexer->getFileLoc() == CodeCompletionFileLoc) in HandleEndOfFile()
457 CurLexer.reset(); in HandleEndOfFile()