[clang-tools-extra] [clangd] Add inlay hints for default function arguments and implicit lambda captures (PR #95712)

Tor Shepherd via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 05:02:30 PDT 2024


================
@@ -1458,13 +1463,66 @@ TEST(TypeHints, DefaultTemplateArgs) {
     struct A {};
     A<float> foo();
     auto $var[[var]] = foo();
-    A<float> bar[1];
+    A<float> baz;
+    A<float> bar[1]{};
----------------
torshepherd wrote:

My fault, an artifact from a different set of inlay hints I decided not to include (show implicit default constructions with '{}')

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


More information about the cfe-commits mailing list