[libcxx-commits] [libcxx] [libc++] Add checks for misused hardening macros (PR #150669)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 26 00:11:12 PDT 2025
================
@@ -40,9 +40,21 @@
// HARDENING {
-// TODO: Remove in LLVM 21. We're making this an error to catch folks who might not have migrated.
-# ifdef _LIBCPP_ENABLE_ASSERTIONS
-# error "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE instead"
+// TODO: Remove in LLVM 23. We're making these an error to catch folks who might not have migrated.
----------------
philnik777 wrote:
```suggestion
// TODO(LLVM 23): Remove this. We're making these an error to catch folks who might not have migrated.
```
https://github.com/llvm/llvm-project/pull/150669
More information about the libcxx-commits
mailing list