diff --git a/clang-tools-extra/clangd/HeuristicResolver.h b/clang-tools-extra/clangd/HeuristicResolver.h --- a/clang-tools-extra/clangd/HeuristicResolver.h +++ b/clang-tools-extra/clangd/HeuristicResolver.h @@ -53,7 +53,8 @@ resolveMemberExpr(const CXXDependentScopeMemberExpr *ME) const; std::vector resolveDeclRefExpr(const DependentScopeDeclRefExpr *RE) const; - std::vector resolveCallExpr(const CallExpr *CE) const; + std::vector + resolveTypeOfCallExpr(const CallExpr *CE) const; std::vector resolveUsingValueDecl(const UnresolvedUsingValueDecl *UUVD) const; std::vector diff --git a/clang-tools-extra/clangd/HeuristicResolver.cpp b/clang-tools-extra/clangd/HeuristicResolver.cpp --- a/clang-tools-extra/clangd/HeuristicResolver.cpp +++ b/clang-tools-extra/clangd/HeuristicResolver.cpp @@ -115,7 +115,7 @@ } std::vector -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 @@ return resolveDeclsToType(resolveDeclRefExpr(RE)); } if (const auto *CE = dyn_cast(E)) { - return resolveDeclsToType(resolveCallExpr(CE)); + return resolveDeclsToType(resolveTypeOfCallExpr(CE)); } if (const auto *ME = dyn_cast(E)) return resolveDeclsToType({ME->getMemberDecl()});