[libc-commits] [libc] [libc] Use __attribute__((__nothrow__)) for __NOEXCEPT in C (PR #114653)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Dec 10 09:09:36 PST 2024
================
@@ -47,7 +47,14 @@
#define __restrict restrict // C99 and above support the restrict keyword.
#undef __NOEXCEPT
+#if defined(__has_attribute)
+#if __has_attribute(__nothrow__)
----------------
nickdesaulniers wrote:
What are your thoughts on using `[[gnu::nothrow]]` a la `#define _Noreturn [[noreturn]]` earlier in that file?
https://github.com/llvm/llvm-project/pull/114653
More information about the libc-commits
mailing list