mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adjust printing to take into account special DeclNames
Print DeclBaseNames using a new userFacingStr() method to prepare for DeclBaseNames that are not backed by Identifiers
This commit is contained in:
@@ -1399,7 +1399,8 @@ public:
|
||||
llvm::array_pod_sort(ClangMacros.begin(), ClangMacros.end(),
|
||||
[](ValueDecl * const *lhs,
|
||||
ValueDecl * const *rhs) -> int {
|
||||
return (*lhs)->getNameStr().compare((*rhs)->getNameStr());
|
||||
return (*lhs)->getBaseName().userFacingName().compare(
|
||||
(*rhs)->getBaseName().userFacingName());
|
||||
});
|
||||
|
||||
for (auto *VD : ClangMacros)
|
||||
|
||||
Reference in New Issue
Block a user