[clang-tools-extra] [clangd] Support go-to-definition on type hints. The protocol part (PR #85497)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 25 00:33:12 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);
----------------
HighCommander4 wrote:

There are three `{` in this format string, I assume that is a typo

https://github.com/llvm/llvm-project/pull/85497


More information about the cfe-commits mailing list