[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 21 11:21:41 PDT 2023


================
@@ -1488,6 +1491,8 @@ markup::Document HoverInfo::present() const {
           llvm::formatv(" (+{0} padding)", formatSize(*Padding)).str());
     }
   }
+  if (Align)
+    Output.addParagraph().appendText("Align: " + formatSize(*Align));
----------------
sr-tream wrote:

Yeah, it's looks better

![image](https://github.com/llvm/llvm-project/assets/12231048/a58f9b99-f8d4-4cf3-8b24-fb251136791b)
![image](https://github.com/llvm/llvm-project/assets/12231048/ac9d1693-fc65-453a-9160-be466f99d481)


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


More information about the cfe-commits mailing list