Sema: Change a couple of Identifier usages to DeclName instead

This commit is contained in:
Slava Pestov
2025-05-29 13:49:44 -04:00
parent 14f6dbfc3a
commit 0e1561f05a
4 changed files with 9 additions and 9 deletions

View File

@@ -4068,8 +4068,8 @@ namespace {
}
/// Lookup all macros with the given macro name.
SmallVector<OverloadChoice, 1> lookupMacros(Identifier moduleName,
Identifier macroName,
SmallVector<OverloadChoice, 1> lookupMacros(DeclName moduleName,
DeclName macroName,
FunctionRefInfo functionRefInfo,
MacroRoles roles) {
SmallVector<OverloadChoice, 1> choices;
@@ -4100,8 +4100,8 @@ namespace {
CS.associateArgumentList(locator, expr->getArgs());
// Look up the macros with this name.
auto moduleIdent = expr->getModuleName().getBaseIdentifier();
auto macroIdent = expr->getMacroName().getBaseIdentifier();
auto moduleIdent = expr->getModuleName().getBaseName();
auto macroIdent = expr->getMacroName().getBaseName();
FunctionRefInfo functionRefInfo = FunctionRefInfo::singleBaseNameApply();
auto macros = lookupMacros(moduleIdent, macroIdent, functionRefInfo,
expr->getMacroRoles());