[PATCH] D151128: [clangd] Show size, offset and padding for bit fields on hover
SR_team via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 16:50:08 PDT 2023
SR_team updated this revision to Diff 524933.
SR_team added a comment.
Stores `Offset`, `Size` and `Padding` fields of HoverInfo in bits. When hover present bits converted to bytes, if possible.
Examle:
struct test {
char a;
char b : 3;
char c : 5;
int d;
};
F27617664: image.png <https://reviews.llvm.org/F27617664>
F27617668: image.png <https://reviews.llvm.org/F27617668>
F27617673: image.png <https://reviews.llvm.org/F27617673>
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151128/new/
https://reviews.llvm.org/D151128
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Hover.h
clang-tools-extra/clangd/unittests/HoverTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151128.524933.patch
Type: text/x-patch
Size: 8314 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230523/d104017c/attachment.bin>
More information about the cfe-commits
mailing list