AST: Cut down on DescriptiveDeclKind usage in DiagnosticsClangImporter.def

This commit is contained in:
Anthony Latsis
2025-04-04 03:04:24 +01:00
parent a0930dec31
commit cdb2aaccfd
2 changed files with 4 additions and 3 deletions

View File

@@ -282,7 +282,8 @@ ERROR(conforms_to_ambiguous,none,
"ambiguous reference to protocol '%0' in specified protocol conformance; module '%1' contains multiple protocols named '%0'", (StringRef, StringRef))
ERROR(conforms_to_not_protocol,none,
"%0 %1 referenced in protocol conformance '%2' is not a protocol", (DescriptiveDeclKind, ValueDecl *, StringRef))
"%kind0 referenced in protocol conformance '%1' is not a protocol",
(const ValueDecl *, StringRef))
ERROR(failed_base_method_call_synthesis,none,
"failed to synthesize call to the base method %0 of type %0",

View File

@@ -3170,8 +3170,8 @@ namespace {
new (Impl.SwiftContext) SynthesizedProtocolAttr(protocol, &Impl, false));
} else {
HeaderLoc attrLoc((*conformsToAttr)->getLocation());
Impl.diagnose(attrLoc, diag::conforms_to_not_protocol,
result->getDescriptiveKind(), result, conformsToValue);
Impl.diagnose(attrLoc, diag::conforms_to_not_protocol, result,
conformsToValue);
}
}