Skip to content

Commit 4534e2f

Browse files
authored
Merge pull request #10744 from ahoppen/diagnostics-adjustment
Diagnostic adjustment DeclBaseName -> Identifier
2 parents 82b13d1 + 0b28615 commit 4534e2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2610,7 +2610,7 @@ NOTE(add_self_to_type,none,
26102610

26112611
WARNING(warn_unqualified_access,none,
26122612
"use of %0 treated as a reference to %1 in %2 %3",
2613-
(DeclBaseName, DescriptiveDeclKind, DescriptiveDeclKind, DeclName))
2613+
(Identifier, DescriptiveDeclKind, DescriptiveDeclKind, DeclName))
26142614
NOTE(fix_unqualified_access_member,none,
26152615
"use 'self.' to silence this warning", ())
26162616
NOTE(fix_unqualified_access_top_level,none,

lib/Sema/MiscDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ static void diagSyntacticUseRestrictions(TypeChecker &TC, const Expr *E,
728728
}
729729

730730
TC.diagnose(DRE->getLoc(), diag::warn_unqualified_access,
731-
VD->getBaseName(), VD->getDescriptiveKind(),
731+
VD->getBaseName().getIdentifier(), VD->getDescriptiveKind(),
732732
declParent->getDescriptiveKind(), declParent->getFullName());
733733
TC.diagnose(VD, diag::decl_declared_here, VD->getFullName());
734734

0 commit comments

Comments
 (0)