[clangd] Rename HeuristicResolver::resolveCallExpr() to resolveTypeOfCallExpr()

Differential Revision: https://reviews.llvm.org/D100741
This commit is contained in:
Nathan Ridge 2021-04-19 02:57:16 -04:00
parent 6f6cf2da8d
commit c624e70149
2 changed files with 4 additions and 3 deletions

View File

@ -115,7 +115,7 @@ std::vector<const NamedDecl *> HeuristicResolver::resolveDeclRefExpr(
}
std::vector<const NamedDecl *>
HeuristicResolver::resolveCallExpr(const CallExpr *CE) const {
HeuristicResolver::resolveTypeOfCallExpr(const CallExpr *CE) const {
const auto *CalleeType = resolveExprToType(CE->getCallee());
if (!CalleeType)
return {};
@ -171,7 +171,7 @@ const Type *HeuristicResolver::resolveExprToType(const Expr *E) const {
return resolveDeclsToType(resolveDeclRefExpr(RE));
}
if (const auto *CE = dyn_cast<CallExpr>(E)) {
return resolveDeclsToType(resolveCallExpr(CE));
return resolveDeclsToType(resolveTypeOfCallExpr(CE));
}
if (const auto *ME = dyn_cast<MemberExpr>(E))
return resolveDeclsToType({ME->getMemberDecl()});

View File

@ -53,7 +53,8 @@ public:
resolveMemberExpr(const CXXDependentScopeMemberExpr *ME) const;
std::vector<const NamedDecl *>
resolveDeclRefExpr(const DependentScopeDeclRefExpr *RE) const;
std::vector<const NamedDecl *> resolveCallExpr(const CallExpr *CE) const;
std::vector<const NamedDecl *>
resolveTypeOfCallExpr(const CallExpr *CE) const;
std::vector<const NamedDecl *>
resolveUsingValueDecl(const UnresolvedUsingValueDecl *UUVD) const;
std::vector<const NamedDecl *>