[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 08:33:39 PDT 2024
Sirraide wrote:
I.e. could we get it to emit something like:
```console
<source>:10:5: warning: ignoring return value of type 'S<int>' declared with 'nodiscard' attribute [-Wunused-result]
10 | getS(2);
| ^~~~ ~
1 warning generated.
```
https://github.com/llvm/llvm-project/pull/112289
More information about the cfe-commits
mailing list