[clangd] Show size, offset and padding for bit fields on hover
authorSR_team <me@sr.team>
Mon, 5 Jun 2023 15:52:06 +0000 (17:52 +0200)
committerSam McCall <sam.mccall@gmail.com>
Mon, 5 Jun 2023 15:52:34 +0000 (17:52 +0200)
commit4cb5e436ae713579cfee00cfc8e516cf965b91e9
treeb128eee712df1b7e3de499af1735fe333b1d5436
parent17b0d90e20eed93bd55a57c614565e7c9fbae3b1
[clangd] Show size, offset and padding for bit fields on hover

Examle:
```
struct test {
char a;
char b : 3;
char c : 5;
int d;
int e : 27;
};
```

{F27617774}
{F27617776}
{F27617777}
{F27617780}

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D151128
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Hover.h
clang-tools-extra/clangd/unittests/HoverTests.cpp