mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ABI checker: when invoking via build system, explicitly mention ABI breakge in diagnostics
The error messages emitted from the ABI checker are mostly explanations of breakages. We should explicitly mention why they are emitted to differentiate them from other compiler diagnostics. rdar://68864860
This commit is contained in:
@@ -409,10 +409,16 @@ StringRef SDKNodeDecl::getScreenInfo() const {
|
||||
auto &Ctx = getSDKContext();
|
||||
llvm::SmallString<64> SS;
|
||||
llvm::raw_svector_ostream OS(SS);
|
||||
if (Ctx.getOpts().PrintModule)
|
||||
OS << ModuleName;
|
||||
if (!HeaderName.empty())
|
||||
OS << "(" << HeaderName << ")";
|
||||
if (Ctx.getOpts().CompilerStyle) {
|
||||
// Compiler style we don't need source info
|
||||
OS << (Ctx.checkingABI() ? "ABI breakage" : "API breakage");
|
||||
} else {
|
||||
// Print more source info.
|
||||
if (Ctx.getOpts().PrintModule)
|
||||
OS << ModuleName;
|
||||
if (!HeaderName.empty())
|
||||
OS << "(" << HeaderName << ")";
|
||||
}
|
||||
if (!OS.str().empty())
|
||||
OS << ": ";
|
||||
bool IsExtension = false;
|
||||
|
||||
Reference in New Issue
Block a user