[PATCH] D124690: [clangd] add inlay hints for std::forward-ed parameter packs
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 16 00:55:52 PDT 2022
nridge added a comment.
Another test case that comes to mind is:
void f1(int a, int b);
void f2(int c, int d);
template <typename... Args>
void foo(Args... args) {
if (cond) {
f1(args...);
} else {
f2(args...);
}
}
int main() {
foo(1, 2);
}
I guess in this case it will use the parameters names from `f1`, because that's the first call that appears in the function body in traversal order?
I think that's fine, functions written like this are probably not very common. Still good to add to the test suite to document the behaviour.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124690/new/
https://reviews.llvm.org/D124690
More information about the cfe-commits
mailing list