[llvm-branch-commits] [libcxx] [NFC][libc++][test] Minor updates to generated header version test. (PR #134543)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Apr 6 09:27:12 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Mark de Wever (mordante)
<details>
<summary>Changes</summary>
Adjusting the existing script to match the new output makes it easy to review the new script works correctly.
This adjusts the tests to match the changes in the new tests, Notably
- removes the synopsis uses 2 spaces indent in `# if`
It does not implement the conditional include part. This would be quite some effort and these diffs are easy to review manually.
Note there are no tests for the changes; the existing script will be phased out when the next generators are complete.
---
Patch is 1.40 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/134543.diff
76 Files Affected:
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp (+404-418)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/any.version.compile.pass.cpp (+36-37)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/array.version.compile.pass.cpp (+129-134)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp (+360-370)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/barrier.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/bit.version.compile.pass.cpp (+150-155)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/bitset.version.compile.pass.cpp (+51-53)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/charconv.version.compile.pass.cpp (+88-91)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/chrono.version.compile.pass.cpp (+69-71)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/cmath.version.compile.pass.cpp (+165-169)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/compare.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/complex.version.compile.pass.cpp (+66-68)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/concepts.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/coroutine.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/cstddef.version.compile.pass.cpp (+36-37)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/cstdlib.version.compile.pass.cpp (+42-43)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/cstring.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/deque.version.compile.pass.cpp (+156-161)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/exception.version.compile.pass.cpp (+36-37)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.compile.pass.cpp (+91-94)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/expected.version.compile.pass.cpp (+58-60)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/filesystem.version.compile.pass.cpp (+140-143)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/flat_map.version.compile.pass.cpp (+30-31)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/flat_set.version.compile.pass.cpp (+42-43)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/format.version.compile.pass.cpp (+108-111)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/forward_list.version.compile.pass.cpp (+225-232)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/fstream.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/functional.version.compile.pass.cpp (+485-504)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/iomanip.version.compile.pass.cpp (+69-70)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/ios.version.compile.pass.cpp (+30-31)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/istream.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/iterator.version.compile.pass.cpp (+268-278)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/latch.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/limits.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/list.version.compile.pass.cpp (+225-232)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/locale.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/map.version.compile.pass.cpp (+345-356)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/mdspan.version.compile.pass.cpp (+86-90)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/memory.version.compile.pass.cpp (+584-607)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/memory_resource.version.compile.pass.cpp (+109-111)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/mutex.version.compile.pass.cpp (+60-61)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/new.version.compile.pass.cpp (+174-178)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/numbers.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.compile.pass.cpp (+221-227)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.compile.pass.cpp (+120-126)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/ostream.version.compile.pass.cpp (+90-92)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/print.version.compile.pass.cpp (+42-43)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/queue.version.compile.pass.cpp (+54-56)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/random.version.compile.pass.cpp (+61-63)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp (+385-398)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/ratio.version.compile.pass.cpp (+27-28)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/regex.version.compile.pass.cpp (+36-37)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/scoped_allocator.version.compile.pass.cpp (+36-37)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/semaphore.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/set.version.compile.pass.cpp (+271-279)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/shared_mutex.version.compile.pass.cpp (+128-130)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/source_location.version.compile.pass.cpp (+33-34)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/span.version.compile.pass.cpp (+77-80)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/sstream.version.compile.pass.cpp (+27-28)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/stack.version.compile.pass.cpp (+54-56)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/stdatomic.h.version.compile.pass.cpp (+30-31)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/stop_token.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/string.version.compile.pass.cpp (+429-444)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp (+201-209)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/syncstream.version.compile.pass.cpp (+51-52)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/thread.version.compile.pass.cpp (+90-92)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp (+286-295)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/type_traits.version.compile.pass.cpp (+906-931)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/typeinfo.version.compile.pass.cpp (+30-31)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/unordered_map.version.compile.pass.cpp (+339-350)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/unordered_set.version.compile.pass.cpp (+265-273)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.compile.pass.cpp (+447-462)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/variant.version.compile.pass.cpp (+92-97)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/vector.version.compile.pass.cpp (+225-232)
- (modified) libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp (+7725-7961)
- (modified) libcxx/utils/generate_feature_test_macro_components.py (+39-39)
``````````diff
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp
index acc13e5405867..2aa0ad30abfe7 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp
@@ -5,473 +5,459 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
-//
-// WARNING: This test was generated by generate_feature_test_macro_components.py
+
+// WARNING: This test was generated by
+// generate_feature_test_macro_components.py
// and should not be edited manually.
-//
-// clang-format off
// <algorithm>
// Test the feature test macros defined by <algorithm>
-/* Constant Value
- __cpp_lib_clamp 201603L [C++17]
- __cpp_lib_constexpr_algorithms 201806L [C++20]
- 202306L [C++26]
- __cpp_lib_default_template_type_for_algorithm_values 202403L [C++26]
- __cpp_lib_freestanding_algorithm 202311L [C++26]
- __cpp_lib_parallel_algorithm 201603L [C++17]
- __cpp_lib_ranges 202110L [C++20]
- 202406L [C++23]
- __cpp_lib_ranges_contains 202207L [C++23]
- __cpp_lib_ranges_find_last 202207L [C++23]
- __cpp_lib_ranges_starts_ends_with 202106L [C++23]
- __cpp_lib_robust_nonmodifying_seq_ops 201304L [C++14]
- __cpp_lib_sample 201603L [C++17]
- __cpp_lib_shift 201806L [C++20]
-*/
+// clang-format off
#include <algorithm>
#include "test_macros.h"
#if TEST_STD_VER < 14
-# ifdef __cpp_lib_clamp
-# error "__cpp_lib_clamp should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_clamp
+# error "__cpp_lib_clamp should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_constexpr_algorithms
-# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_constexpr_algorithms
+# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
+# endif
-# ifdef __cpp_lib_default_template_type_for_algorithm_values
-# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
-# endif
+# ifdef __cpp_lib_default_template_type_for_algorithm_values
+# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
+# endif
-# ifdef __cpp_lib_freestanding_algorithm
-# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
-# endif
+# ifdef __cpp_lib_freestanding_algorithm
+# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
+# endif
-# ifdef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_ranges
-# error "__cpp_lib_ranges should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_ranges
+# error "__cpp_lib_ranges should not be defined before c++20"
+# endif
-# ifdef __cpp_lib_ranges_contains
-# error "__cpp_lib_ranges_contains should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_contains
+# error "__cpp_lib_ranges_contains should not be defined before c++23"
+# endif
-# ifdef __cpp_lib_ranges_find_last
-# error "__cpp_lib_ranges_find_last should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_find_last
+# error "__cpp_lib_ranges_find_last should not be defined before c++23"
+# endif
-# ifdef __cpp_lib_ranges_starts_ends_with
-# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_starts_ends_with
+# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
+# endif
-# ifdef __cpp_lib_robust_nonmodifying_seq_ops
-# error "__cpp_lib_robust_nonmodifying_seq_ops should not be defined before c++14"
-# endif
+# ifdef __cpp_lib_robust_nonmodifying_seq_ops
+# error "__cpp_lib_robust_nonmodifying_seq_ops should not be defined before c++14"
+# endif
-# ifdef __cpp_lib_sample
-# error "__cpp_lib_sample should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_sample
+# error "__cpp_lib_sample should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_shift
-# error "__cpp_lib_shift should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_shift
+# error "__cpp_lib_shift should not be defined before c++20"
+# endif
#elif TEST_STD_VER == 14
-# ifdef __cpp_lib_clamp
-# error "__cpp_lib_clamp should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_clamp
+# error "__cpp_lib_clamp should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_constexpr_algorithms
-# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_constexpr_algorithms
+# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
+# endif
-# ifdef __cpp_lib_default_template_type_for_algorithm_values
-# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
-# endif
+# ifdef __cpp_lib_default_template_type_for_algorithm_values
+# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
+# endif
-# ifdef __cpp_lib_freestanding_algorithm
-# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
-# endif
+# ifdef __cpp_lib_freestanding_algorithm
+# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
+# endif
-# ifdef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_ranges
-# error "__cpp_lib_ranges should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_ranges
+# error "__cpp_lib_ranges should not be defined before c++20"
+# endif
-# ifdef __cpp_lib_ranges_contains
-# error "__cpp_lib_ranges_contains should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_contains
+# error "__cpp_lib_ranges_contains should not be defined before c++23"
+# endif
-# ifdef __cpp_lib_ranges_find_last
-# error "__cpp_lib_ranges_find_last should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_find_last
+# error "__cpp_lib_ranges_find_last should not be defined before c++23"
+# endif
-# ifdef __cpp_lib_ranges_starts_ends_with
-# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
-# endif
+# ifdef __cpp_lib_ranges_starts_ends_with
+# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
+# endif
-# ifndef __cpp_lib_robust_nonmodifying_seq_ops
-# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++14"
-# endif
-# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
-# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++14"
-# endif
+# ifndef __cpp_lib_robust_nonmodifying_seq_ops
+# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++14"
+# endif
+# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
+# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++14"
+# endif
-# ifdef __cpp_lib_sample
-# error "__cpp_lib_sample should not be defined before c++17"
-# endif
+# ifdef __cpp_lib_sample
+# error "__cpp_lib_sample should not be defined before c++17"
+# endif
-# ifdef __cpp_lib_shift
-# error "__cpp_lib_shift should not be defined before c++20"
-# endif
+# ifdef __cpp_lib_shift
+# error "__cpp_lib_shift should not be defined before c++20"
+# endif
#elif TEST_STD_VER == 17
-# ifndef __cpp_lib_clamp
-# error "__cpp_lib_clamp should be defined in c++17"
-# endif
-# if __cpp_lib_clamp != 201603L
-# error "__cpp_lib_clamp should have the value 201603L in c++17"
-# endif
-
-# ifdef __cpp_lib_constexpr_algorithms
-# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
-# endif
-
-# ifdef __cpp_lib_default_template_type_for_algorithm_values
-# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
-# endif
-
-# ifdef __cpp_lib_freestanding_algorithm
-# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
-# endif
-
-# if !defined(_LIBCPP_VERSION)
-# ifndef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should be defined in c++17"
-# endif
-# if __cpp_lib_parallel_algorithm != 201603L
-# error "__cpp_lib_parallel_algorithm should have the value 201603L in c++17"
-# endif
-# else // _LIBCPP_VERSION
-# ifdef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
-# endif
-# endif
-
-# ifdef __cpp_lib_ranges
-# error "__cpp_lib_ranges should not be defined before c++20"
-# endif
-
-# ifdef __cpp_lib_ranges_contains
-# error "__cpp_lib_ranges_contains should not be defined before c++23"
-# endif
-
-# ifdef __cpp_lib_ranges_find_last
-# error "__cpp_lib_ranges_find_last should not be defined before c++23"
-# endif
-
-# ifdef __cpp_lib_ranges_starts_ends_with
-# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
-# endif
-
-# ifndef __cpp_lib_robust_nonmodifying_seq_ops
-# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++17"
-# endif
-# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
-# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++17"
-# endif
-
-# ifndef __cpp_lib_sample
-# error "__cpp_lib_sample should be defined in c++17"
-# endif
-# if __cpp_lib_sample != 201603L
-# error "__cpp_lib_sample should have the value 201603L in c++17"
-# endif
-
-# ifdef __cpp_lib_shift
-# error "__cpp_lib_shift should not be defined before c++20"
-# endif
+# ifndef __cpp_lib_clamp
+# error "__cpp_lib_clamp should be defined in c++17"
+# endif
+# if __cpp_lib_clamp != 201603L
+# error "__cpp_lib_clamp should have the value 201603L in c++17"
+# endif
+
+# ifdef __cpp_lib_constexpr_algorithms
+# error "__cpp_lib_constexpr_algorithms should not be defined before c++20"
+# endif
+
+# ifdef __cpp_lib_default_template_type_for_algorithm_values
+# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
+# endif
+
+# ifdef __cpp_lib_freestanding_algorithm
+# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
+# endif
+
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should be defined in c++17"
+# endif
+# if __cpp_lib_parallel_algorithm != 201603L
+# error "__cpp_lib_parallel_algorithm should have the value 201603L in c++17"
+# endif
+# else
+# ifdef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
+# ifdef __cpp_lib_ranges
+# error "__cpp_lib_ranges should not be defined before c++20"
+# endif
+
+# ifdef __cpp_lib_ranges_contains
+# error "__cpp_lib_ranges_contains should not be defined before c++23"
+# endif
+
+# ifdef __cpp_lib_ranges_find_last
+# error "__cpp_lib_ranges_find_last should not be defined before c++23"
+# endif
+
+# ifdef __cpp_lib_ranges_starts_ends_with
+# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
+# endif
+
+# ifndef __cpp_lib_robust_nonmodifying_seq_ops
+# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++17"
+# endif
+# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
+# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++17"
+# endif
+
+# ifndef __cpp_lib_sample
+# error "__cpp_lib_sample should be defined in c++17"
+# endif
+# if __cpp_lib_sample != 201603L
+# error "__cpp_lib_sample should have the value 201603L in c++17"
+# endif
+
+# ifdef __cpp_lib_shift
+# error "__cpp_lib_shift should not be defined before c++20"
+# endif
#elif TEST_STD_VER == 20
-# ifndef __cpp_lib_clamp
-# error "__cpp_lib_clamp should be defined in c++20"
-# endif
-# if __cpp_lib_clamp != 201603L
-# error "__cpp_lib_clamp should have the value 201603L in c++20"
-# endif
-
-# ifndef __cpp_lib_constexpr_algorithms
-# error "__cpp_lib_constexpr_algorithms should be defined in c++20"
-# endif
-# if __cpp_lib_constexpr_algorithms != 201806L
-# error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++20"
-# endif
-
-# ifdef __cpp_lib_default_template_type_for_algorithm_values
-# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
-# endif
-
-# ifdef __cpp_lib_freestanding_algorithm
-# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
-# endif
-
-# if !defined(_LIBCPP_VERSION)
-# ifndef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should be defined in c++20"
-# endif
-# if __cpp_lib_parallel_algorithm != 201603L
-# error "__cpp_lib_parallel_algorithm should have the value 201603L in c++20"
-# endif
-# else // _LIBCPP_VERSION
-# ifdef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
-# endif
-# endif
-
-# ifndef __cpp_lib_ranges
-# error "__cpp_lib_ranges should be defined in c++20"
-# endif
-# if __cpp_lib_ranges != 202110L
-# error "__cpp_lib_ranges should have the value 202110L in c++20"
-# endif
-
-# ifdef __cpp_lib_ranges_contains
-# error "__cpp_lib_ranges_contains should not be defined before c++23"
-# endif
-
-# ifdef __cpp_lib_ranges_find_last
-# error "__cpp_lib_ranges_find_last should not be defined before c++23"
-# endif
-
-# ifdef __cpp_lib_ranges_starts_ends_with
-# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
-# endif
-
-# ifndef __cpp_lib_robust_nonmodifying_seq_ops
-# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++20"
-# endif
-# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
-# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++20"
-# endif
-
-# ifndef __cpp_lib_sample
-# error "__cpp_lib_sample should be defined in c++20"
-# endif
-# if __cpp_lib_sample != 201603L
-# error "__cpp_lib_sample should have the value 201603L in c++20"
-# endif
-
-# ifndef __cpp_lib_shift
-# error "__cpp_lib_shift should be defined in c++20"
-# endif
-# if __cpp_lib_shift != 201806L
-# error "__cpp_lib_shift should have the value 201806L in c++20"
-# endif
+# ifndef __cpp_lib_clamp
+# error "__cpp_lib_clamp should be defined in c++20"
+# endif
+# if __cpp_lib_clamp != 201603L
+# error "__cpp_lib_clamp should have the value 201603L in c++20"
+# endif
+
+# ifndef __cpp_lib_constexpr_algorithms
+# error "__cpp_lib_constexpr_algorithms should be defined in c++20"
+# endif
+# if __cpp_lib_constexpr_algorithms != 201806L
+# error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++20"
+# endif
+
+# ifdef __cpp_lib_default_template_type_for_algorithm_values
+# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
+# endif
+
+# ifdef __cpp_lib_freestanding_algorithm
+# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
+# endif
+
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should be defined in c++20"
+# endif
+# if __cpp_lib_parallel_algorithm != 201603L
+# error "__cpp_lib_parallel_algorithm should have the value 201603L in c++20"
+# endif
+# else
+# ifdef __cpp_lib_parallel_algorithm
+# error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
+# ifndef __cpp_lib_ranges
+# error "__cpp_lib_ranges should be defined in c++20"
+# endif
+# if __cpp_lib_ranges != 202110L
+# error "__cpp_lib_ranges should have the value 202110L in c++20"
+# endif
+
+# ifdef __cpp_lib_ranges_contains
+# error "__cpp_lib_ranges_contains should not be defined before c++23"
+# endif
+
+# ifdef __cpp_lib_ranges_find_last
+# error "__cpp_lib_ranges_find_last should not be defined before c++23"
+# endif
+
+# ifdef __cpp_lib_ranges_starts_ends_with
+# error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23"
+# endif
+
+# ifndef __cpp_lib_robust_nonmodifying_seq_ops
+# error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++20"
+# endif
+# if __cpp_lib_robust_nonmodifying_seq_ops != 201304L
+# error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++20"
+# endif
+
+# ifndef __cpp_lib_sample
+# error "__cpp_lib_sample should be defined in c++20"
+# endif
+# if __cpp_lib_sample != 201603L
+# error "__cpp_lib_sample should have the value 201603L in c++20"
+# endif
+
+# ifndef __cpp_lib_shift
+# error "__cpp_lib_shift should be defined in c++20"
+# endif
+# if __cpp_lib_shift != 201806L
+# error "__cpp_lib_shift should have the value 201806L in c++20"
+# endif
#elif TEST_STD_VER == 23
-# ifndef __cpp_lib_clamp
-# error "__cpp_lib_clamp should be defined in c++23"
-# endif
-# if __cpp_lib_clamp != 201603L
-# error "__cpp_lib_clamp should have the value 201603L in c++23"
-# endif
-
-# ifndef __cpp_lib_constexpr_algorithms
-# error "__cpp_lib_constexpr_algorithms should be defined in c++23"
-# endif
-# if __cpp_lib_constexpr_algorithms != 201806L
-# error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++23"
-# endif
-
-# ifdef __cpp_lib_default_template_type_for_algorithm_values
-# error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
-# endif
-
-# ifdef __cpp_lib_freestanding_algorithm
-# error "__cpp_lib_freestanding_algorithm should not be defined before c++26"
-# endif
-
-# if !defined(_LIBCPP_VERSION)
-# ifndef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should be defined in c++23"
-# endif
-# if __cpp_lib_parallel_algorithm != 201603L
-# error "__cpp_lib_parallel_algorithm should have the value 201603L in c++23"
-# endif
-# else // _LIBCPP_VERSION
-# ifdef __cpp_lib_parallel_algorithm
-# error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!"
-# endif
-# endif
-
-# ifndef __cpp_lib_ranges
-# error "__cpp_lib_ranges should be defined in c++23"
-# endif
-# if __cpp_lib_ranges != 202406L
-# error "__cpp_lib_ranges should have the value 202406L in c++23"
-# endif
-
-# ifndef __cpp_lib_ranges_contains
-# error "__cpp_lib_ranges_contains should be defined in c++23"
-# endif
-# if __cpp_lib_ranges_contains != 202207L
-# error "__cpp_lib_ranges_contains should have the value 202207L in c++23"
-# endif
-
-# ifndef __cpp_lib_ranges_find_last
-# error "__cpp_lib_ranges_find_last should be defined in c++23"
-# endif
-# if __cpp_lib_ranges_find_last != 202207L
-# error "__cpp_lib_ranges_find_last should have the value 202207L in c++23"
-# endif
-
-# ifndef __cpp_lib_ranges_starts_ends_with
-# error "__cpp_lib_ranges_starts_ends_with should be defined in c++23"
-# endif
-# if __cpp_lib_ranges_starts_ends_with != 202106L
-# error "__cpp_lib_ranges_starts_ends_with should have the value 202106L in c++23"
-# endif
-
-# ifndef __cpp_lib_robust_nonm...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/134543
More information about the llvm-branch-commits
mailing list