[libcxx-commits] [libcxx] [libc++][hardening] Add an experimental function to log hardening errors (PR #149452)
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 23 02:18:27 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
----------------
var-const wrote:
> Do we intend to support `__log_hardening_failure` in C++03?
This is a very good question which is essentially "Do we want to support 'observe' semantics in C++03 mode that is about to be frozen?", IIUC. I was leaning towards not introducing a new feature into a mode that we're about to move into a locked state. However, you have much more context on this, so please let me know what you think -- I'm quite open to adding this if you think it's a good idea.
https://github.com/llvm/llvm-project/pull/149452
More information about the libcxx-commits
mailing list