[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:11 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.
+
+In some cases, users might want to override the assertion semantic used by the
+library. This can be done similarly to setting the hardening mode; please refer
+to the :ref:`relevant section <assertion-semantics>`. Note that this feature is
+currently experimental.
----------------
ldionne wrote:

```suggestion
to the :ref:`relevant section <assertion-semantics>`.
```

I think it's more future-proof not to duplicate this information.

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


More information about the libcxx-commits mailing list