[PATCH] D157956: [clangd] don't add inlay hint for dependent type in structured binding
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 20 00:01:37 PDT 2023
nridge accepted this revision.
nridge added a comment.
This revision is now accepted and ready to land.
Thanks!
A future enhancement to consider could be, in the following testcase:
template <typename T, typename U>
struct Pair {
T t;
U u;
};
template <class T, class U>
void foobar(Pair<T, U> arg) {
auto [a, b] = arg;
}
to get the hints to be `T` and `U`. (Today they are `<dependent type>`, so the patch is still an improvement in this case.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157956/new/
https://reviews.llvm.org/D157956
More information about the cfe-commits
mailing list