[libcxx-commits] [libcxx] [libc++] Include the rest of the detail headers by version in the umbrella headers (PR #96032)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 16 06:47:13 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 30cc12cd818d4b52914d1033d1ed79af4a0f78fa 528d3e6d72d3c32912d7db677ef7970c4ed315b9 --extensions ,h,cpp -- libcxx/include/__type_traits/make_signed.h libcxx/include/atomic libcxx/include/expected libcxx/include/filesystem libcxx/include/format libcxx/include/forward_list libcxx/include/functional libcxx/include/iterator libcxx/include/mdspan libcxx/include/memory libcxx/include/memory_resource libcxx/include/numeric libcxx/include/ostream libcxx/include/random libcxx/include/ranges libcxx/include/stop_token libcxx/include/string_view libcxx/include/type_traits libcxx/include/utility libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp libcxx/test/libcxx/iterators/bounded_iter/arithmetic.pass.cpp libcxx/test/libcxx/iterators/bounded_iter/comparison.pass.cpp libcxx/test/libcxx/iterators/bounded_iter/dereference.pass.cpp libcxx/test/libcxx/iterators/bounded_iter/pointer_traits.pass.cpp libcxx/test/libcxx/iterators/bounded_iter/types.compile.pass.cpp libcxx/test/libcxx/memory/allocation_guard.pass.cpp libcxx/test/libcxx/memory/compressed_pair/compressed_pair.pass.cpp libcxx/test/libcxx/numerics/clamp_to_integral.pass.cpp libcxx/test/libcxx/ranges/range.adaptors/range.adaptor.helpers/as-lvalue.lifetimebound.verify.cpp libcxx/test/libcxx/ranges/range.adaptors/range.adaptor.helpers/as-lvalue.pass.cpp libcxx/test/libcxx/type_traits/is_callable.compile.pass.cpp libcxx/test/libcxx/type_traits/is_constant_evaluated.pass.cpp libcxx/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp libcxx/test/libcxx/type_traits/is_specialization.compile.pass.cpp libcxx/test/libcxx/type_traits/is_specialization.verify.cpp libcxx/test/libcxx/type_traits/lazy_metafunctions.pass.cpp libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp libcxx/test/libcxx/utilities/exception_guard.pass.cpp libcxx/test/libcxx/utilities/function.objects/func.bind.partial/compose.pass.cpp libcxx/test/libcxx/utilities/meta/meta_base.pass.cpp libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/ranges_make_heap.pass.cpp libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/ranges_pop_heap.pass.cpp libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/ranges_push_heap.pass.cpp libcxx/test/std/ranges/range.adaptors/range.all/range.owning.view/begin_end.pass.cpp libcxx/test/std/ranges/range.factories/range.repeat.view/iterator/plus_eq.pass.cpp libcxx/test/support/test_iterators.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/stop_token b/libcxx/include/stop_token
index f4662cbfeb..d4e651d954 100644
--- a/libcxx/include/stop_token
+++ b/libcxx/include/stop_token
@@ -35,13 +35,13 @@ namespace std {
 
 #if !defined(_LIBCPP_HAS_NO_THREADS)
 
-#if _LIBCPP_STD_VER >= 20
-#  include <__stop_token/stop_callback.h>
-#  include <__stop_token/stop_source.h>
-#  include <__stop_token/stop_token.h>
-#endif
+#  if _LIBCPP_STD_VER >= 20
+#    include <__stop_token/stop_callback.h>
+#    include <__stop_token/stop_source.h>
+#    include <__stop_token/stop_token.h>
+#  endif
 
-#include <version>
+#  include <version>
 
 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #    pragma GCC system_header

``````````

</details>


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


More information about the libcxx-commits mailing list