This displays as: Size: 4 bytes (+4 padding)
Also stop showing (byte) offset/size for bitfields. They're not
meaningful and using them to calculate padding is dangerous!
Paths
| Differential D98377
[clangd] Show padding following a field on field hover. ClosedPublic Authored by sammccall on Mar 10 2021, 4:21 PM.
Details Summary This displays as: Size: 4 bytes (+4 padding) Also stop showing (byte) offset/size for bitfields. They're not
Diff Detail
Event TimelineHerald added subscribers: usaxena95, kadircet, arphaman. · View Herald TranscriptMar 10 2021, 4:21 PM
This revision is now accepted and ready to land.Mar 30 2021, 4:23 AM Closed by commit rGb447445eaa6f: [clangd] Show padding following a field on field hover. (authored by sammccall). · Explain WhyJun 30 2021, 8:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 355571 clang-tools-extra/clangd/Hover.h
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
|
Does it make any sense to include the padding for union fields?