Skip to content

Commit cdb2aac

Browse files
committed
AST: Cut down on DescriptiveDeclKind usage in DiagnosticsClangImporter.def
1 parent a0930de commit cdb2aac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/swift/AST/DiagnosticsClangImporter.def

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ ERROR(conforms_to_ambiguous,none,
282282
"ambiguous reference to protocol '%0' in specified protocol conformance; module '%1' contains multiple protocols named '%0'", (StringRef, StringRef))
283283

284284
ERROR(conforms_to_not_protocol,none,
285-
"%0 %1 referenced in protocol conformance '%2' is not a protocol", (DescriptiveDeclKind, ValueDecl *, StringRef))
285+
"%kind0 referenced in protocol conformance '%1' is not a protocol",
286+
(const ValueDecl *, StringRef))
286287

287288
ERROR(failed_base_method_call_synthesis,none,
288289
"failed to synthesize call to the base method %0 of type %0",

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,8 +3170,8 @@ namespace {
31703170
new (Impl.SwiftContext) SynthesizedProtocolAttr(protocol, &Impl, false));
31713171
} else {
31723172
HeaderLoc attrLoc((*conformsToAttr)->getLocation());
3173-
Impl.diagnose(attrLoc, diag::conforms_to_not_protocol,
3174-
result->getDescriptiveKind(), result, conformsToValue);
3173+
Impl.diagnose(attrLoc, diag::conforms_to_not_protocol, result,
3174+
conformsToValue);
31753175
}
31763176
}
31773177

0 commit comments

Comments
 (0)