[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:58:46 PDT 2023
SR_team updated this revision to Diff 524938.
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;
int e : 31;
};
F27617774: image.png <https://reviews.llvm.org/F27617774>
F27617776: image.png <https://reviews.llvm.org/F27617776>
F27617777: image.png <https://reviews.llvm.org/F27617777>
F27617780: image.png <https://reviews.llvm.org/F27617780>
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.524938.patch
Type: text/x-patch
Size: 8325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230523/6f69599a/attachment-0001.bin>
More information about the cfe-commits
mailing list