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

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 26 12:35:53 PST 2022


sammccall marked 2 inline comments as done.
sammccall added inline comments.


================
Comment at: clang-tools-extra/clangd/unittests/InlayHintTests.cpp:626
+    auto f4() -> auto* { return "foo"; }
+
     // `auto` conversion operator
----------------
Trass3r wrote:
> Should there be a test for `void` too or does it just work?
Added a test verifying that an auto-typed function/lambda with no return statements gets a `-> void` hint.


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