mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Replace some uses of getBaseIdentifier() with userFacingName()
This commit is contained in:
@@ -3910,7 +3910,7 @@ Optional<DeclName> TypeChecker::omitNeedlessWords(AbstractFunctionDecl *afd) {
|
||||
return None;
|
||||
|
||||
// String'ify the arguments.
|
||||
StringRef baseNameStr = name.getBaseIdentifier().str();
|
||||
StringRef baseNameStr = name.getBaseName().userFacingName();
|
||||
SmallVector<StringRef, 4> argNameStrs;
|
||||
for (auto arg : name.getArgumentNames()) {
|
||||
if (arg.empty())
|
||||
|
||||
Reference in New Issue
Block a user