[all-commits] [llvm/llvm-project] dc10bd: [clangd] don't add inlay hint for dependent type i...
v1nh1shungry via All-commits
all-commits at lists.llvm.org
Sun Aug 20 20:12:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc10bd43a103d0e252c4fb4d30913f99b4f418fe
https://github.com/llvm/llvm-project/commit/dc10bd43a103d0e252c4fb4d30913f99b4f418fe
Author: Yuanjing Hong <v1nh1shungry at outlook.com>
Date: 2023-08-21 (Mon, 21 Aug 2023)
Changed paths:
M clang-tools-extra/clangd/InlayHints.cpp
M clang-tools-extra/clangd/unittests/InlayHintTests.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list