[libcxx-commits] [libcxx] [libcxxabi] [llvm] [libc++][hardening] Introduce assertion semantics. (PR #149459)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 24 11:10:10 PDT 2025


================
@@ -72,6 +74,19 @@ to control the level by passing **one** of the following options to the compiler
    pre-built components. Most libc++ code is header-based, so a user-provided
    value for ``_LIBCPP_HARDENING_MODE`` will be mostly respected.
 
+.. warning::
+
+Assertion semantics are currently an experimental feature.
+
+.. note::
+
+Assertion semantics are not available in the C++03 mode.
----------------
ldionne wrote:

Actually, I think it makes sense to only leave a warning + note in the main section, since these other bits of text link to the main section about assertion semantics.

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


More information about the libcxx-commits mailing list