mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsClangImporter.def
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user