[all-commits] [llvm/llvm-project] c30088: [clangd] Show alignment for records and fields dec...
SR_team via All-commits
all-commits at lists.llvm.org
Sun Oct 22 09:37:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3008842bf19e3a00db1f8adbd95d43f71b4f09f
https://github.com/llvm/llvm-project/commit/c3008842bf19e3a00db1f8adbd95d43f71b4f09f
Author: SR_team <me at sr.team>
Date: 2023-10-22 (Sun, 22 Oct 2023)
Changed paths:
M clang-tools-extra/clangd/Hover.cpp
M clang-tools-extra/clangd/Hover.h
M clang-tools-extra/clangd/unittests/HoverTests.cpp
Log Message:
-----------
[clangd] Show alignment for records and fields decls (#67213)
Shows align for records and fields declarations in hover information.
Example:
```cpp
struct A {
char a;
short b;
};
```
For this struct hover informations shows:
```
Size: 4 bytes, alignment 2 bytes
```
![image](https://github.com/llvm/llvm-project/assets/12231048/a130b353-f3f6-4203-b0d7-3d592b7a7855)
More information about the All-commits
mailing list