Lines Matching refs:CurPPLexer
54 return CurPPLexer; in getCurrentFileLexer()
115 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithLexer()
119 CurPPLexer = TheLexer; in EnterSourceFileWithLexer()
140 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithPTH()
145 CurPPLexer = CurPTHLexer.get(); in EnterSourceFileWithPTH()
152 FileID FID = CurPPLexer->getFileID(); in EnterSourceFileWithPTH()
300 if (CurPPLexer) { // Not ending a macro, ignore it. in HandleEndOfFile()
302 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { in HandleEndOfFile()
304 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
311 CurPPLexer->MIOpt.GetDefinedMacro()) { in HandleEndOfFile()
330 Diag(CurPPLexer->MIOpt.GetMacroLocation(), in HandleEndOfFile()
332 << CurPPLexer->MIOpt.GetMacroLocation() << ControllingMacro; in HandleEndOfFile()
333 Diag(CurPPLexer->MIOpt.GetDefinedLocation(), in HandleEndOfFile()
335 << CurPPLexer->MIOpt.GetDefinedLocation() << DefinedMacro in HandleEndOfFile()
338 CurPPLexer->MIOpt.GetDefinedLocation(), in HandleEndOfFile()
374 if (isCodeCompletionEnabled() && CurPPLexer && in HandleEndOfFile()
375 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == in HandleEndOfFile()
387 CurPPLexer = nullptr; in HandleEndOfFile()
391 if (!isEndOfMacro && CurPPLexer && in HandleEndOfFile()
392 SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid()) { in HandleEndOfFile()
397 CurPPLexer->getInitialNumSLocEntries() + 1/*#include'd file*/; in HandleEndOfFile()
398 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs); in HandleEndOfFile()
402 if (Callbacks && !isEndOfMacro && CurPPLexer) in HandleEndOfFile()
403 ExitedFID = CurPPLexer->getFileID(); in HandleEndOfFile()
426 if (Callbacks && !isEndOfMacro && CurPPLexer) { in HandleEndOfFile()
428 SourceMgr.getFileCharacteristic(CurPPLexer->getSourceLocation()); in HandleEndOfFile()
429 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), in HandleEndOfFile()
465 CurPPLexer = nullptr; in HandleEndOfFile()
524 assert(CurTokenLexer && !CurPPLexer && in HandleEndOfTokenLexer()
562 assert(CurTokenLexer && !CurPPLexer && in HandleMicrosoftCommentPaste()