[all-commits] [llvm/llvm-project] 4cb5e4: [clangd] Show size, offset and padding for bit fie...

SR_team via All-commits all-commits at lists.llvm.org
Mon Jun 5 09:04:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cb5e436ae713579cfee00cfc8e516cf965b91e9
      https://github.com/llvm/llvm-project/commit/4cb5e436ae713579cfee00cfc8e516cf965b91e9
  Author: SR_team <me at sr.team>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

  Changed paths:
    M clang-tools-extra/clangd/Hover.cpp
    M clang-tools-extra/clangd/Hover.h
    M clang-tools-extra/clangd/unittests/HoverTests.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list