[clang] [clang-tools-extra] [clang] CodeComplete fix for addr of deduced-this methods (PR #152445)
Mythreya Kuricheti via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 6 23:11:58 PDT 2025
================
@@ -1312,6 +1312,11 @@ bool ResultBuilder::canCxxMethodBeCalled(const CXXMethodDecl *Method,
(CurrentClassScope == Method->getParent() ||
CurrentClassScope->isDerivedFrom(Method->getParent()));
+ // if method is using C++23 "deducing this", then it is a call
+ if (Method->isExplicitObjectMemberFunction()) {
+ FunctionCanBeCall = true;
+ }
----------------
MythreyaK wrote:
We probably need more checks here :D
https://github.com/llvm/llvm-project/pull/152445
More information about the cfe-commits
mailing list