[clang-tools-extra] [clangd] Support go-to-definition on type hints. The protocol part (PR #85497)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 03:02:02 PDT 2024
================
@@ -367,7 +367,13 @@ class Checker {
auto Hints = inlayHints(*AST, LineRange);
for (const auto &Hint : Hints) {
- vlog(" {0} {1} {2}", Hint.kind, Hint.position, Hint.label);
+ vlog(" {0} {1} [{2}]", Hint.kind, Hint.position, [&] {
+ return llvm::join(llvm::map_range(Hint.label,
+ [&](auto &L) {
+ return llvm::formatv("{{{0}}", L);
----------------
zyn0217 wrote:
(I don't know why Sam's comment was not reflected in that patch at last -- maybe I can add that in a separate NFC patch.)
https://github.com/llvm/llvm-project/pull/85497
More information about the cfe-commits
mailing list