Details
Details
- Reviewers
kadircet - Commits
- rGc2810f2c1655: [clangd] Omit type hints that are too long
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/InlayHints.cpp | ||
---|---|---|
346 | I'm open to suggestions for what the length limit should be, here I made a fairly arbitrary choice. |
Comment Actions
Thanks! I was having some discussions with @sammccall about what we really want here. We think folding the arguments & dropping qualifiers until hint fits under the limit would be the most ideal but there's no rush. A stepping stone would be to just truncate all the template arguments (e.g. tuple<foo<x>, foo<y>> becomes tuple<...> even if tuple<foo<...>, foo<...>> could fit under the limit). Omitting is also fine initially, even though it's gonna feel weird (as if clangd couldn't find any hints) it is still better than extending the line to infinity!
I'm open to suggestions for what the length limit should be, here I made a fairly arbitrary choice.