[NFC] Take DeclNameRef in UnqualifiedLookup and lookupQualified()

This commit is contained in:
Brent Royal-Gordon
2019-12-10 19:46:10 -08:00
parent 9a57554bdf
commit da88512eda
25 changed files with 64 additions and 68 deletions

View File

@@ -499,7 +499,7 @@ void walkRelatedDecls(const ValueDecl *VD, const FnTy &Fn) {
// For now we use unqualified lookup to fetch other declarations with the same
// base name.
auto &ctx = VD->getASTContext();
auto descriptor = UnqualifiedLookupDescriptor(VD->getBaseName(),
auto descriptor = UnqualifiedLookupDescriptor(DeclNameRef_(VD->getBaseName()),
VD->getDeclContext());
auto lookup = evaluateOrDefault(ctx.evaluator,
UnqualifiedLookupRequest{descriptor}, {});