This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGc624e701491c: [clangd] Rename HeuristicResolver::resolveCallExpr() to resolveTypeOfCallExpr() (authored by nridge).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100741/new/ https://reviews.llvm.org/D100741 Files: clang-tools-extra/clangd/HeuristicResolver.cpp clang-tools-extra/clangd/HeuristicResolver.h Index: clang-tools-extra/clangd/HeuristicResolver.h =================================================================== --- clang-tools-extra/clangd/HeuristicResolver.h +++ clang-tools-extra/clangd/HeuristicResolver.h @@ -53,7 +53,8 @@ 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 *> Index: clang-tools-extra/clangd/HeuristicResolver.cpp =================================================================== --- clang-tools-extra/clangd/HeuristicResolver.cpp +++ clang-tools-extra/clangd/HeuristicResolver.cpp @@ -115,7 +115,7 @@ } 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 @@ 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()});
Index: clang-tools-extra/clangd/HeuristicResolver.h =================================================================== --- clang-tools-extra/clangd/HeuristicResolver.h +++ clang-tools-extra/clangd/HeuristicResolver.h @@ -53,7 +53,8 @@ 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 *> Index: clang-tools-extra/clangd/HeuristicResolver.cpp =================================================================== --- clang-tools-extra/clangd/HeuristicResolver.cpp +++ clang-tools-extra/clangd/HeuristicResolver.cpp @@ -115,7 +115,7 @@ } 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 @@ 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()});
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits