[NFC] Thread DeclNameRef through most of the compiler

This huge commit contains as many of the mechanical changes as possible.
This commit is contained in:
Brent Royal-Gordon
2019-12-10 19:46:10 -08:00
parent da88512eda
commit addbe3e5ed
66 changed files with 505 additions and 464 deletions

View File

@@ -3177,7 +3177,7 @@ class ObjCSelectorWalker : public ASTWalker {
auto nominal = method->getDeclContext()->getSelfNominalTypeDecl();
auto result = TypeChecker::lookupMember(
const_cast<DeclContext *>(DC), nominal->getDeclaredInterfaceType(),
lookupName,
DeclNameRef_(lookupName),
(defaultMemberLookupOptions | NameLookupFlags::KnownPrivate));
// If we didn't find multiple methods, there is no ambiguity.