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 |
|
#
bb7c515b |
| 24-Oct-2023 |
Timm Baeder <tbaeder@redhat.com> |
[clang][Diagnostics] Provide source range to constexpr function diags (#69721)
Before:
```console
./array.cpp:290:16: error: constexpr function never produces a constant expression [-Winvalid-cons
[clang][Diagnostics] Provide source range to constexpr function diags (#69721)
Before:
```console
./array.cpp:290:16: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
290 | constexpr void neverValid() {
| ^
./array.cpp:291:3: note: subexpression not valid in a constant expression
291 | throw;
| ^~~~~
```
After:
```console
./array.cpp:290:16: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
290 | constexpr void neverValid() {
| ^~~~~~~~~~
./array.cpp:291:3: note: subexpression not valid in a constant expression
291 | throw;
| ^~~~~
```
show more ...
|
Revision tags: llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0 |
|
#
fedc9827 |
| 11-Sep-2023 |
Timm Baeder <tbaeder@redhat.com> |
[clang][Diagnostics] Add source range to uninitialized diagnostics (#65896)
Before:
```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
319 | r
[clang][Diagnostics] Add source range to uninitialized diagnostics (#65896)
Before:
```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
319 | return aaa;
| ^
```
After:
```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
319 | return aaa;
| ^~~
```
show more ...
|
Revision tags: llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3 |
|
#
985a72b6 |
| 19-Aug-2023 |
Takuya Shimizu <shimizu2486@gmail.com> |
[clang][Diagnostics] Provide source range to integer-overflow warnings
BEFORE:
``` overflow.cpp:1:21: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow]
[clang][Diagnostics] Provide source range to integer-overflow warnings
BEFORE:
``` overflow.cpp:1:21: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow] 1 | int x = __INT_MAX__ + 1 + 3; | ^ overflow.cpp:2:9: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow] 2 | int a = -(1 << 31) + 1; | ^ ``` AFTER:
``` overflow.cpp:1:21: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow] 1 | int x = __INT_MAX__ + 1 + 3; | ~~~~~~~~~~~~^~~ overflow.cpp:2:9: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow] 2 | int a = -(1 << 31) + 1; | ^~~~~~~~~~ ```
Reviewed By: tbaeder Differential Revision: https://reviews.llvm.org/D157383
show more ...
|
Revision tags: llvmorg-17.0.0-rc2 |
|
#
871ee941 |
| 01-Aug-2023 |
Timm Bäder <tbaeder@redhat.com> |
[clang][ExprConst] Use call source range for 'in call to' diags
Differential Revision: https://reviews.llvm.org/D156604
|
#
f6ee4e3f |
| 09-Aug-2023 |
Timm Bäder <tbaeder@redhat.com> |
[clang][ExprConst] Add RHS source range to div by zero diags
Differential Revision: https://reviews.llvm.org/D157074
|
#
925ec544 |
| 08-Aug-2023 |
Timm Bäder <tbaeder@redhat.com> |
Revert "[clang][ExprConst] Add RHS source range to div by zero diags"
This reverts commit 74c141a467caf9ebb4835458bc4ffbedb172a63a.
Looks like this breaks a whole bunch of unexpected tests: https:/
Revert "[clang][ExprConst] Add RHS source range to div by zero diags"
This reverts commit 74c141a467caf9ebb4835458bc4ffbedb172a63a.
Looks like this breaks a whole bunch of unexpected tests: https://lab.llvm.org/buildbot/#/builders/109/builds/70813
show more ...
|
#
74c141a4 |
| 04-Aug-2023 |
Timm Bäder <tbaeder@redhat.com> |
[clang][ExprConst] Add RHS source range to div by zero diags
Differential Revision: https://reviews.llvm.org/D157074
|
Revision tags: llvmorg-17.0.0-rc1, llvmorg-18-init |
|
#
81fb2162 |
| 19-Jun-2023 |
Timm Bäder <tbaeder@redhat.com> |
[clang][Diagnostics] Provide source range to invalid casts in const expr
Differential Revision: https://reviews.llvm.org/D153241
|
Revision tags: llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4 |
|
#
7a3ad8ed |
| 12-May-2023 |
Timm Bäder <tbaeder@redhat.com> |
[clang] Provide source range to 'invalid subexpr in const expr' diags
Differential Revision: https://reviews.llvm.org/D150566
|