[PATCH] D120416: [clangd] Function return type hints: support lambdas, don't duplicate "->"

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 23 11:50:51 PST 2022


nridge accepted this revision.
nridge added a comment.
This revision is now accepted and ready to land.

Nice!



================
Comment at: clang-tools-extra/clangd/unittests/InlayHintTests.cpp:539
+  // Lambda return hint shown even if no param list.
+  assertTypeHints("auto $L[[x]] = <:$ret[[:>]]{return 42;};",
+                  ExpectedHint{": (lambda)", "L"},
----------------
Maybe add a comment like "use digraphs to place a literal `]` in an annotation range"


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120416/new/

https://reviews.llvm.org/D120416



More information about the cfe-commits mailing list