[libcxx-commits] [libcxx] Add C++23 stacktrace (P0881R7) (PR #136528)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 1 01:29:57 PDT 2025
================
@@ -0,0 +1,342 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_STACKTRACE_BASIC
+#define _LIBCPP_STACKTRACE_BASIC
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+# pragma GCC system_header
+#endif
+
+_LIBCPP_PUSH_MACROS
+#include <__undef_macros>
+
+#if _LIBCPP_STD_VER >= 23
+
+# include <__assert>
+# include <__cstddef/size_t.h>
+# include <__functional/function.h>
+# include <__functional/hash.h>
+# include <__iterator/iterator.h>
+# include <__iterator/reverse_iterator.h>
+# include <__memory/allocator_traits.h>
+# include <__memory_resource/polymorphic_allocator.h>
+# include <__new/allocate.h>
+# include <__type_traits/is_nothrow_constructible.h>
+# include <__vector/vector.h>
+# include <cstddef>
+# include <cstdint>
+# include <string>
+# include <utility>
+
+# if _LIBCPP_HAS_LOCALIZATION
+# include <__fwd/format.h>
+# include <__fwd/ostream.h>
+# endif // _LIBCPP_HAS_LOCALIZATION
+
+# include <__stacktrace/stacktrace_entry.h>
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+namespace __stacktrace {
+
+template <typename _Tp, typename _Bp = _Tp>
+struct iters {
----------------
philnik777 wrote:
This needs to be _Uglified.
https://github.com/llvm/llvm-project/pull/136528
More information about the libcxx-commits
mailing list