[APIDigester] Provide a category when serializing diagnostics representing API or ABI breakage

This commit is contained in:
Owen Voorhees
2021-05-03 23:00:32 -07:00
parent 1263da107b
commit 07fb294c8a
8 changed files with 106 additions and 45 deletions

View File

@@ -1973,9 +1973,10 @@ int swift::performFrontend(ArrayRef<const char *> Args,
DiagnosticInfo errorInfo(
DiagID(0), SourceLoc(), DiagnosticKind::Error,
"fatal error encountered during compilation; " SWIFT_BUG_REPORT_MESSAGE,
{}, SourceLoc(), {}, {}, {}, false);
{}, StringRef(), SourceLoc(), {}, {}, {}, false);
DiagnosticInfo noteInfo(DiagID(0), SourceLoc(), DiagnosticKind::Note,
reason, {}, SourceLoc(), {}, {}, {}, false);
reason, {}, StringRef(), SourceLoc(), {}, {}, {},
false);
PDC.handleDiagnostic(dummyMgr, errorInfo);
PDC.handleDiagnostic(dummyMgr, noteInfo);
if (shouldCrash)