[all-commits] [llvm/llvm-project] aad7e0: [clang][Diagnostics] Add bitfield source range to ...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Thu Oct 5 23:42:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aad7e0a994f4e3d73137fc4a1001785110f9bbe6
https://github.com/llvm/llvm-project/commit/aad7e0a994f4e3d73137fc4a1001785110f9bbe6
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2023-10-06 (Fri, 06 Oct 2023)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
A clang/test/Misc/misc-source-ranges.cpp
Log Message:
-----------
[clang][Diagnostics] Add bitfield source range to zero width diags (#68312)
Before:
```
array.cpp:157:8: error: named bit-field 'a' has zero width
157 | char a : 12 - 12;
| ^
1 error generated.
```
After:
```
array.cpp:157:8: error: named bit-field 'a' has zero width
157 | char a : 12 - 12;
| ^ ~~~~~~~
1 error generated.
```
More information about the All-commits
mailing list