Lines Matching refs:SourceMgr

869 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr,  in PrintUnexpected()  argument
878 if (I->first.isInvalid() || !SourceMgr) in PrintUnexpected()
883 SourceMgr->getFileEntryRefForID(SourceMgr->getFileID(I->first))) in PrintUnexpected()
885 OS << " Line " << SourceMgr->getPresumedLineNumber(I->first); in PrintUnexpected()
900 SourceManager &SourceMgr, in PrintExpected() argument
911 OS << "\n File " << SourceMgr.getFilename(D->DiagnosticLoc); in PrintExpected()
915 OS << " Line " << SourceMgr.getPresumedLineNumber(D->DiagnosticLoc); in PrintExpected()
918 << SourceMgr.getFilename(D->DirectiveLoc) << ':' in PrintExpected()
919 << SourceMgr.getPresumedLineNumber(D->DirectiveLoc) << ')'; in PrintExpected()
948 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckLists() argument
959 unsigned LineNo1 = SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); in CheckLists()
965 unsigned LineNo2 = SourceMgr.getPresumedLineNumber(II->first); in CheckLists()
971 !IsFromSameFile(SourceMgr, D.DiagnosticLoc, II->first)) in CheckLists()
989 unsigned num = PrintExpected(Diags, SourceMgr, LeftOnly, Label); in CheckLists()
991 num += PrintUnexpected(Diags, &SourceMgr, Right.begin(), Right.end(), Label); in CheckLists()
998 static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckResults() argument
1012 NumProblems += CheckLists(Diags, SourceMgr, "error", ED.Errors, in CheckResults()
1017 NumProblems += CheckLists(Diags, SourceMgr, "warning", ED.Warnings, in CheckResults()
1022 NumProblems += CheckLists(Diags, SourceMgr, "remark", ED.Remarks, in CheckResults()
1027 NumProblems += CheckLists(Diags, SourceMgr, "note", ED.Notes, in CheckResults()