[libcxx-commits] [libcxx] [libc++][hardening] Add an experimental function to log hardening errors (PR #149452)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 23 02:40:57 PDT 2025


================
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Basic smoke test for `__log_hardening_failure`.
+//
+// UNSUPPORTED: libcpp-has-no-experimental-hardening-observe-semantic
+// XFAIL: availability-log_hardening_failure-missing
+// UNSUPPORTED: FROZEN-CXX03-HEADERS-FIXME
----------------
philnik777 wrote:

If we don't want to introduce it in the frozen headers IMO we shouldn't introduce it for the regular C++03 headers either. Personally I don't think it's worth it to introduce it in C++03.


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


More information about the libcxx-commits mailing list