[PATCH] D98377: [clangd] Show padding following a field on field hover.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 10 16:21:29 PST 2021


sammccall created this revision.
sammccall added a reviewer: kbobyrev.
Herald added subscribers: usaxena95, kadircet, arphaman.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.

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!


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98377

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: D98377.329798.patch
Type: text/x-patch
Size: 4993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210311/2d0b0237/attachment-0001.bin>


More information about the cfe-commits mailing list