mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -215,7 +215,8 @@ bool ide::printDeclUSR(const ValueDecl *D, raw_ostream &OS) {
|
||||
auto &Importer = *D->getASTContext().getClangModuleLoader();
|
||||
|
||||
auto ClangMacroInfo = ClangN.getAsMacro();
|
||||
bool Ignore = clang::index::generateUSRForMacro(D->getNameStr(),
|
||||
bool Ignore = clang::index::generateUSRForMacro(
|
||||
D->getBaseName().getIdentifier().str(),
|
||||
ClangMacroInfo->getDefinitionLoc(),
|
||||
Importer.getClangASTContext().getSourceManager(), Buf);
|
||||
if (!Ignore)
|
||||
|
||||
Reference in New Issue
Block a user