Skip to content

Commit 27baa7b

Browse files
Feature macros + regenerate
1 parent e5db5e6 commit 27baa7b

File tree

6 files changed

+29
-54
lines changed

6 files changed

+29
-54
lines changed

libcxx/docs/FeatureTestMacroTable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ Status
392392
---------------------------------------------------------- -----------------
393393
``__cpp_lib_spanstream`` *unimplemented*
394394
---------------------------------------------------------- -----------------
395-
``__cpp_lib_stacktrace`` *unimplemented*
395+
``__cpp_lib_stacktrace`` ``202011L``
396396
---------------------------------------------------------- -----------------
397397
``__cpp_lib_stdatomic_h`` ``202011L``
398398
---------------------------------------------------------- -----------------

libcxx/include/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ __cpp_lib_void_t 201411L <type_traits>
524524
// # define __cpp_lib_ranges_zip 202110L
525525
// # define __cpp_lib_reference_from_temporary 202202L
526526
// # define __cpp_lib_spanstream 202106L
527-
// # define __cpp_lib_stacktrace 202011L
527+
# define __cpp_lib_stacktrace 202011L
528528
# define __cpp_lib_stdatomic_h 202011L
529529
# define __cpp_lib_string_contains 202011L
530530
# define __cpp_lib_string_resize_and_overwrite 202110L

libcxx/test/std/diagnostics/stacktrace/syn.pass.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88

99
// REQUIRES: std-at-least-c++23
1010

11-
#include <cassert>
12-
#include <stacktrace>
13-
14-
#include <memory>
15-
#include <type_traits>
16-
1711
/*
1812
1913
// (19.6.2) Header <stacktrace> synopsis [stacktrace.syn]
@@ -62,7 +56,13 @@ namespace std {
6256
}
6357
*/
6458

65-
// static_assert(__cpp_lib_stacktrace == 202011L);
59+
#include <__config>
60+
#include <cassert>
61+
#include <memory>
62+
#include <stacktrace>
63+
#include <type_traits>
64+
65+
static_assert(__cpp_lib_stacktrace == 202011L);
6666

6767
int main(int, char**) {
6868
// Very basic tests to ensure the required things are declared.

libcxx/test/std/language.support/support.limits/support.limits.general/stacktrace.version.compile.pass.cpp

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,11 @@
7373
# endif
7474
# endif
7575

76-
# if !defined(_LIBCPP_VERSION)
77-
# ifndef __cpp_lib_stacktrace
78-
# error "__cpp_lib_stacktrace should be defined in c++23"
79-
# endif
80-
# if __cpp_lib_stacktrace != 202011L
81-
# error "__cpp_lib_stacktrace should have the value 202011L in c++23"
82-
# endif
83-
# else
84-
# ifdef __cpp_lib_stacktrace
85-
# error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!"
86-
# endif
76+
# ifndef __cpp_lib_stacktrace
77+
# error "__cpp_lib_stacktrace should be defined in c++23"
78+
# endif
79+
# if __cpp_lib_stacktrace != 202011L
80+
# error "__cpp_lib_stacktrace should have the value 202011L in c++23"
8781
# endif
8882

8983
#elif TEST_STD_VER > 23
@@ -101,17 +95,11 @@
10195
# endif
10296
# endif
10397

104-
# if !defined(_LIBCPP_VERSION)
105-
# ifndef __cpp_lib_stacktrace
106-
# error "__cpp_lib_stacktrace should be defined in c++26"
107-
# endif
108-
# if __cpp_lib_stacktrace != 202011L
109-
# error "__cpp_lib_stacktrace should have the value 202011L in c++26"
110-
# endif
111-
# else
112-
# ifdef __cpp_lib_stacktrace
113-
# error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!"
114-
# endif
98+
# ifndef __cpp_lib_stacktrace
99+
# error "__cpp_lib_stacktrace should be defined in c++26"
100+
# endif
101+
# if __cpp_lib_stacktrace != 202011L
102+
# error "__cpp_lib_stacktrace should have the value 202011L in c++26"
115103
# endif
116104

117105
#endif // TEST_STD_VER > 23

libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5831,17 +5831,11 @@
58315831
# error "__cpp_lib_sstream_from_string_view should not be defined before c++26"
58325832
# endif
58335833

5834-
# if !defined(_LIBCPP_VERSION)
5835-
# ifndef __cpp_lib_stacktrace
5836-
# error "__cpp_lib_stacktrace should be defined in c++23"
5837-
# endif
5838-
# if __cpp_lib_stacktrace != 202011L
5839-
# error "__cpp_lib_stacktrace should have the value 202011L in c++23"
5840-
# endif
5841-
# else
5842-
# ifdef __cpp_lib_stacktrace
5843-
# error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!"
5844-
# endif
5834+
# ifndef __cpp_lib_stacktrace
5835+
# error "__cpp_lib_stacktrace should be defined in c++23"
5836+
# endif
5837+
# if __cpp_lib_stacktrace != 202011L
5838+
# error "__cpp_lib_stacktrace should have the value 202011L in c++23"
58455839
# endif
58465840

58475841
# ifndef __cpp_lib_starts_ends_with
@@ -7771,17 +7765,11 @@
77717765
# error "__cpp_lib_sstream_from_string_view should have the value 202306L in c++26"
77727766
# endif
77737767

7774-
# if !defined(_LIBCPP_VERSION)
7775-
# ifndef __cpp_lib_stacktrace
7776-
# error "__cpp_lib_stacktrace should be defined in c++26"
7777-
# endif
7778-
# if __cpp_lib_stacktrace != 202011L
7779-
# error "__cpp_lib_stacktrace should have the value 202011L in c++26"
7780-
# endif
7781-
# else
7782-
# ifdef __cpp_lib_stacktrace
7783-
# error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!"
7784-
# endif
7768+
# ifndef __cpp_lib_stacktrace
7769+
# error "__cpp_lib_stacktrace should be defined in c++26"
7770+
# endif
7771+
# if __cpp_lib_stacktrace != 202011L
7772+
# error "__cpp_lib_stacktrace should have the value 202011L in c++26"
77857773
# endif
77867774

77877775
# ifndef __cpp_lib_starts_ends_with

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,6 @@ def add_version_header(tc):
12871287
"name": "__cpp_lib_stacktrace",
12881288
"values": {"c++23": 202011},
12891289
"headers": ["stacktrace"],
1290-
"unimplemented": True,
12911290
},
12921291
{
12931292
"name": "__cpp_lib_starts_ends_with",

0 commit comments

Comments
 (0)