[clang] [Clang] skip warnings for constructors marked with the [[noreturn]] attribute (PR #115558)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 18:34:17 PST 2024
================
@@ -555,6 +555,8 @@ Improvements to Clang's diagnostics
getS(); // Now diagnoses "Reason 2", previously diagnoses "Reason 1"
}
+- Clang now omits warnings for constructors marked with the ``[[noreturn]]`` attribute (#GH63009).
----------------
Sirraide wrote:
```suggestion
- Clang now correctly recognises code after a call to a ``[[noreturn]]`` constructor
as unreachable (#GH63009).
```
I think that’s a bit clearer; the original release note makes it sound like we stop warning about `noreturn` altogether.
https://github.com/llvm/llvm-project/pull/115558
More information about the cfe-commits
mailing list