[clang-tools-extra] [clangd] Show comment of field on hover (PR #182738)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 06:24:18 PDT 2026


================
@@ -1074,6 +1094,29 @@ class Foo final {})cpp";
          HI.Parameters->back().Name = "v";
          HI.AccessSpecifier = "public";
        }},
+      {// Setter with comment
+       R"cpp(
+          struct X {
+            // An int named Y
+            int Y; 
----------------
timon-ul wrote:

nit: you have a trailing whitespace here

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


More information about the cfe-commits mailing list