[all-commits] [llvm/llvm-project] bb7c51: [clang][Diagnostics] Provide source range to const...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Mon Oct 23 21:14:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb7c515ba1a791e5ec7c83bc0dc4d6359736065a
https://github.com/llvm/llvm-project/commit/bb7c515ba1a791e5ec7c83bc0dc4d6359736065a
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2023-10-24 (Tue, 24 Oct 2023)
Changed paths:
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/Misc/constexpr-source-ranges.cpp
Log Message:
-----------
[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;
| ^~~~~
```
More information about the All-commits
mailing list