[clang] [clang-tools-extra] clangd: Extend reference search with constructor calls through forwarding (PR #169742)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 23 00:42:15 PST 2025
================
@@ -576,6 +576,50 @@ SymbolCollector::getRefContainer(const Decl *Enclosing,
return Enclosing;
}
+bool SymbolCollector::isLikelyForwardingFunctionCached(
+ const FunctionTemplateDecl *FT) {
+ if (LikelyForwardingFunctionCached.contains(FT))
+ return true;
+ if (isLikelyForwardingFunction(FT)) {
+ LikelyForwardingFunctionCached.insert(FT);
+ return true;
+ }
+ return false;
+}
+
+bool SymbolCollector::potentiallyForwardInBody(const Decl *D) {
+ if (auto *FD = llvm::dyn_cast<clang::FunctionDecl>(D);
----------------
timon-ul wrote:
I see, misconception on my end. I was under the assumption they would get parsed but when I think about it that indeed does not make too much sense.
https://github.com/llvm/llvm-project/pull/169742
More information about the cfe-commits
mailing list