[clang-tools-extra] c624e70 - [clangd] Rename HeuristicResolver::resolveCallExpr() to resolveTypeOfCallExpr()

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 25 16:20:32 PDT 2021


Author: Nathan Ridge
Date: 2021-04-25T19:20:14-04:00
New Revision: c624e701491c320cf5c662006082a8e956c30e8d

URL: https://github.com/llvm/llvm-project/commit/c624e701491c320cf5c662006082a8e956c30e8d
DIFF: https://github.com/llvm/llvm-project/commit/c624e701491c320cf5c662006082a8e956c30e8d.diff

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

Differential Revision: https://reviews.llvm.org/D100741

Added: 
    

Modified: 
    clang-tools-extra/clangd/HeuristicResolver.cpp
    clang-tools-extra/clangd/HeuristicResolver.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/HeuristicResolver.cpp b/clang-tools-extra/clangd/HeuristicResolver.cpp
index 27ff0c7ea7cf..aacc90369fec 100644
--- a/clang-tools-extra/clangd/HeuristicResolver.cpp
+++ b/clang-tools-extra/clangd/HeuristicResolver.cpp
@@ -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()});

diff  --git a/clang-tools-extra/clangd/HeuristicResolver.h b/clang-tools-extra/clangd/HeuristicResolver.h
index 30f8eb16bd58..dd906245da52 100644
--- a/clang-tools-extra/clangd/HeuristicResolver.h
+++ b/clang-tools-extra/clangd/HeuristicResolver.h
@@ -53,7 +53,8 @@ class HeuristicResolver {
   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 *>


        


More information about the cfe-commits mailing list