[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 21 07:05:29 PDT 2025
================
@@ -16,7 +16,8 @@
#define _NULLPTR_T
#ifdef __cplusplus
-#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
+#if __cplusplus >= 201103L || \
+ (defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED))
----------------
AaronBallman wrote:
> We claim to be a C++11 implementation, not a C++03 implementation.
That's not how I understood the RFC, unless I missed something. I understood it as libc++ is a C++03 and later implementation but that we're not making fixes to C++03 unless there's some major security vulnerability or other extenuating circumstance.
> Well, it does with libc++.
It's a non-conforming extension.
https://github.com/llvm/llvm-project/pull/154599
More information about the cfe-commits
mailing list