https://bugs.llvm.org/show_bug.cgi?id=42403
Bug ID: 42403
Summary: Go to declaration broken for overloaded functions in a
template
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: unassignedclangb...@nondot.org
Reporter: giu...@rapgenic.it
CC: llvm-bugs@lists.llvm.org
Given the following snippet of code:
int f(void);
int f(int);
int f(char);
template<typename P>
int funccall(P Param) {
return f(Param);
}
when asking clangd for the declaration of symbol f in function funccall the
answer is "No declaration found for f". The same happens with go to definition.
This somehow makes sense, because it cannot decide which one of the three
overloads is the right one.
However I think it might be a better solution in such cases to return a list of
all the possible overloads, so that the user can at least see where they are
located and choose the appropriate one on his own.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs