[libc-commits] [libc] [libc] Add noexcept to aligned_alloc declaration in full-build mode (PR #191236)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Thu Apr 9 09:56:30 PDT 2026


================
@@ -11,7 +11,11 @@
 
 #ifdef LIBC_FULL_BUILD
 #include "hdr/types/size_t.h"
+#ifdef __cplusplus
+extern "C" void *aligned_alloc(size_t, size_t) noexcept;
+#else
----------------
vonosmas wrote:

I wonder if you need the same for other function declarations in the libc/hdr/func in this PR?

https://github.com/llvm/llvm-project/pull/191236


More information about the libc-commits mailing list