[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 21 09:17:56 PDT 2025
https://github.com/zwuis commented:
Thank you for the patch! Please add a release note in `clang/docs/ReleaseNotes.rst`.
I'm not sure if this case should be handled:
```cpp
if (condition) {
throw 1;
} else {
throw 2;
}
```
Maybe we need to open an issue for it.
https://github.com/llvm/llvm-project/pull/145166
More information about the cfe-commits
mailing list