[clangd] don't add inlay hint for dependent type in structured binding
commitdc10bd43a103d0e252c4fb4d30913f99b4f418fe
authorYuanjing Hong <v1nh1shungry@outlook.com>
Tue, 15 Aug 2023 09:17:11 +0000 (15 17:17 +0800)
committerYuanjing Hong <v1nh1shungry@outlook.com>
Mon, 21 Aug 2023 03:10:40 +0000 (21 11:10 +0800)
tree13d8f26b99f90539c01895f25fef5c09b5c5032e
parent0c76f46ca676ebecbdf2c9f7e8b05421a234bbed
[clangd] don't add inlay hint for dependent type in structured binding

Currently clangd will display useless inlay hint for dependent type in
structured binding, e.g.

```
template <class T>
void foobar(T arg) {
  auto [a/*: <dependent type>*/, b/*: <dependent type>*/] = arg;
}
```

Differential Revision: https://reviews.llvm.org/D157956
clang-tools-extra/clangd/InlayHints.cpp
clang-tools-extra/clangd/unittests/InlayHintTests.cpp