Lines Matching refs:LastDiag
623 LastDiag = Diag(); in HandleDiagnostic()
626 LastDiag->ID = Info.getID(); in HandleDiagnostic()
627 fillNonLocationData(DiagLevel, Info, *LastDiag); in HandleDiagnostic()
628 LastDiag->InsideMainFile = true; in HandleDiagnostic()
630 LastDiag->Range.start = Position{0, 0}; in HandleDiagnostic()
631 LastDiag->Range.end = Position{0, 0}; in HandleDiagnostic()
717 LastDiag->Fixes.push_back( in HandleDiagnostic()
735 LastDiag = Diag(); in HandleDiagnostic()
736 FillDiagBase(*LastDiag); in HandleDiagnostic()
744 LastDiag->Fixes.insert(LastDiag->Fixes.end(), ExtraFixes.begin(), in HandleDiagnostic()
756 if (!LastDiag) { in HandleDiagnostic()
772 LastDiag->Notes.push_back(std::move(N)); in HandleDiagnostic()
778 if (!LastDiag) in flushLastDiag()
782 vlog("Dropped diagnostic: {0}: {1}", LastDiag->File, LastDiag->Message); in flushLastDiag()
783 LastDiag.reset(); in flushLastDiag()
786 if (isExcluded(*LastDiag)) in flushLastDiag()
789 if (!LastDiag->InsideMainFile && LastDiagLoc && LastDiagOriginallyError) { in flushLastDiag()
790 if (tryMoveToMainFile(*LastDiag, *LastDiagLoc)) { in flushLastDiag()
793 .insert({LastDiag->Range.start.line, in flushLastDiag()
794 LastDiag->Range.start.character}) in flushLastDiag()
799 if (!mentionsMainFile(*LastDiag)) in flushLastDiag()
801 Output.push_back(std::move(*LastDiag)); in flushLastDiag()