|
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4 |
|
| #
d8a5c79e |
| 18-Oct-2023 |
Botond István Horváth <horvath.botond.istvan@gmail.com> |
[clang][Sema] Correct end for the `CastOperation.OpRange` (#69480)
Set the correct end for the CastOperation.OpRange in CXXFunctionalCastExpr. Now it is the closing bracket's location instead of the
[clang][Sema] Correct end for the `CastOperation.OpRange` (#69480)
Set the correct end for the CastOperation.OpRange in CXXFunctionalCastExpr. Now it is the closing bracket's location instead of the parameter's location.
This can lead to better highlight in the diagnostics. Similar to https://github.com/llvm/llvm-project/pull/66853
Before:
warning: cast from 'long (*)(const int &)' to 'decltype(fun_ptr)' (aka 'long (*)(int &)') converts to incompatible function type [-Wcast-function-type-strict] 24 | return decltype(fun_ptr)( f_ptr /*comment*/); | ^~~~~~~~~~~~~~~~~~~~~~~~
After:
warning: cast from 'long (*)(const int &)' to 'decltype(fun_ptr)' (aka 'long (*)(int &)') converts to incompatible function type [-Wcast-function-type-strict] 24 | return decltype(fun_ptr)( f_ptr /*comment*/); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reviewed By: AaronBallman, tbaederr
GitHub PR: https://github.com/llvm/llvm-project/pull/69480
show more ...
|
|
Revision tags: llvmorg-17.0.3 |
|
| #
aad7e0a9 |
| 06-Oct-2023 |
Timm Baeder <tbaeder@redhat.com> |
[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
[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.
```
show more ...
|