Lines Matching refs:CurPPLexer
52 return CurPPLexer; in getCurrentFileLexer()
115 PreprocessorLexer *PrevPPLexer = CurPPLexer; in EnterSourceFileWithLexer()
118 if (CurPPLexer || CurTokenLexer) in EnterSourceFileWithLexer()
122 CurPPLexer = TheLexer; in EnterSourceFileWithLexer()
365 if (CurPPLexer) { // Not ending a macro, ignore it. in HandleEndOfFile()
367 CurPPLexer->MIOpt.GetControllingMacroAtEndOfFile()) { in HandleEndOfFile()
369 if (OptionalFileEntryRef FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
374 CurPPLexer->MIOpt.GetDefinedMacro()) { in HandleEndOfFile()
393 Diag(CurPPLexer->MIOpt.GetMacroLocation(), in HandleEndOfFile()
395 << CurPPLexer->MIOpt.GetMacroLocation() << ControllingMacro; in HandleEndOfFile()
396 Diag(CurPPLexer->MIOpt.GetDefinedLocation(), in HandleEndOfFile()
398 << CurPPLexer->MIOpt.GetDefinedLocation() << DefinedMacro in HandleEndOfFile()
401 CurPPLexer->MIOpt.GetDefinedLocation(), in HandleEndOfFile()
445 if (isCodeCompletionEnabled() && CurPPLexer && in HandleEndOfFile()
446 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == in HandleEndOfFile()
453 CurPPLexer = nullptr; in HandleEndOfFile()
458 if (!isEndOfMacro && CurPPLexer && in HandleEndOfFile()
459 (SourceMgr.getIncludeLoc(CurPPLexer->getFileID()).isValid() || in HandleEndOfFile()
462 CurPPLexer->getFileID() == PredefinesFileID))) { in HandleEndOfFile()
467 CurPPLexer->getInitialNumSLocEntries() + 1/*#include'd file*/; in HandleEndOfFile()
468 SourceMgr.setNumCreatedFIDsForFileID(CurPPLexer->getFileID(), NumFIDs); in HandleEndOfFile()
473 if (!isEndOfMacro && CurPPLexer) { in HandleEndOfFile()
474 ExitedFID = CurPPLexer->getFileID(); in HandleEndOfFile()
495 if (CurPPLexer && creatingPCHWithThroughHeader() && in HandleEndOfFile()
497 SourceMgr.getFileEntryForID(CurPPLexer->getFileID()))) in HandleEndOfFile()
507 if (Callbacks && !isEndOfMacro && CurPPLexer) { in HandleEndOfFile()
508 SourceLocation Loc = CurPPLexer->getSourceLocation(); in HandleEndOfFile()
512 Callbacks->LexedFileChanged(CurPPLexer->getFileID(), in HandleEndOfFile()
526 if (!isEndOfMacro && CurPPLexer && FoundPCHThroughHeader && in HandleEndOfFile()
528 CurPPLexer->getFileID() == getPredefinesFileID())) { in HandleEndOfFile()
573 CurPPLexer = nullptr; in HandleEndOfFile()
602 assert(CurTokenLexer && !CurPPLexer && in HandleEndOfTokenLexer()
640 assert(CurTokenLexer && !CurPPLexer && in HandleMicrosoftCommentPaste()