• Home
  • Raw
  • Download

Lines Matching refs:Diags

31   : Diags(Diags_),  in VerifyDiagnosticConsumer()
32 PrimaryClient(Diags.getClient()), PrimaryClientOwner(Diags.takeClient()), in VerifyDiagnosticConsumer()
37 if (Diags.hasSourceManager()) in VerifyDiagnosticConsumer()
38 setSourceManager(Diags.getSourceManager()); in VerifyDiagnosticConsumer()
46 Diags.takeClient().release(); in ~VerifyDiagnosticConsumer()
311 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective() local
338 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
348 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
404 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
421 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
444 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
463 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
472 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
495 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
509 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
614 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr, in PrintUnexpected() argument
635 Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() in PrintUnexpected()
642 static unsigned PrintExpected(DiagnosticsEngine &Diags, in PrintExpected() argument
664 Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() in PrintExpected()
688 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckLists() argument
728 unsigned num = PrintExpected(Diags, SourceMgr, LeftOnly, Label); in CheckLists()
730 num += PrintUnexpected(Diags, &SourceMgr, Right.begin(), Right.end(), Label); in CheckLists()
738 static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckResults() argument
749 Diags.getDiagnosticOptions().getVerifyIgnoreUnexpected(); in CheckResults()
752 NumProblems += CheckLists(Diags, SourceMgr, "error", ED.Errors, in CheckResults()
757 NumProblems += CheckLists(Diags, SourceMgr, "warning", ED.Warnings, in CheckResults()
762 NumProblems += CheckLists(Diags, SourceMgr, "remark", ED.Remarks, in CheckResults()
767 NumProblems += CheckLists(Diags, SourceMgr, "note", ED.Notes, in CheckResults()
809 DiagnosticConsumer *CurClient = Diags.getClient(); in CheckDiagnostics()
810 std::unique_ptr<DiagnosticConsumer> Owner = Diags.takeClient(); in CheckDiagnostics()
811 Diags.setClient(PrimaryClient, false); in CheckDiagnostics()
856 Diags.Report(diag::err_verify_no_directives).setForceEmit(); in CheckDiagnostics()
862 NumErrors += CheckResults(Diags, *SrcManager, *Buffer, ED); in CheckDiagnostics()
865 ~Diags.getDiagnosticOptions().getVerifyIgnoreUnexpected(); in CheckDiagnostics()
867 NumErrors += PrintUnexpected(Diags, nullptr, Buffer->err_begin(), in CheckDiagnostics()
870 NumErrors += PrintUnexpected(Diags, nullptr, Buffer->warn_begin(), in CheckDiagnostics()
873 NumErrors += PrintUnexpected(Diags, nullptr, Buffer->remark_begin(), in CheckDiagnostics()
876 NumErrors += PrintUnexpected(Diags, nullptr, Buffer->note_begin(), in CheckDiagnostics()
880 Diags.setClient(CurClient, Owner.release() != nullptr); in CheckDiagnostics()