Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Rework includes
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Dec 20, 2022
1 parent 2c035b4 commit 25658c1
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@

#ifndef __cuda_std__
#include <__config>
#include <__functional/weak_result_type.h>
#include <__memory/addressof.h>
#include <type_traits>
#else
#include "weak_result_type.h"
#include "../__memory/addressof.h"
#endif // __cuda_std__

#include "../__functional/weak_result_type.h"
#include "../__memory/addressof.h"

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@

#ifndef __cuda_std__
#include <__config>
#include <__functional/binary_function.h>
#include <__functional/unary_function.h>
#include <type_traits>
#else
#include "binary_function.h"
#include "unary_function.h"
#endif // __cuda_std__

#include "../__functional/binary_function.h"
#include "../__functional/invoke.h"
#include "../__functional/unary_function.h"
#include "../__type_traits/integral_constant.h"
#include "../__type_traits/is_same.h"
#include "../__utility/declval.h"

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
#endif
Expand Down
5 changes: 2 additions & 3 deletions include/cuda/std/detail/libcxx/include/__iterator/advance.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator_traits.h>
#include <cassert>
#include <cstdlib>
#else
#include "iterator_traits.h"
#endif // __cuda_std__

#include "../__iterator/iterator_traits.h"

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__memory/addressof.h>
#include <__utility/move.h>
#include <cstddef>
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__memory/addressof.h"
#include "../__utility/move.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
5 changes: 2 additions & 3 deletions include/cuda/std/detail/libcxx/include/__iterator/distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator_traits.h>
#else
#include "../__iterator/iterator_traits.h"
#endif // __cuda_std__

#include "../__iterator/iterator_traits.h"

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__iterator/iterator_traits.h>
#include <__memory/addressof.h>
#include <__utility/move.h>
#include <cstddef>
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__iterator/iterator_traits.h"
#include "../__memory/addressof.h"
#include "../__utility/move.h"
#endif

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__memory/addressof.h>
#include <__utility/move.h>
#include <cstddef>
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__memory/addressof.h"
#include "../__utility/move.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__memory/addressof.h>
#include <cstddef>
#include <iosfwd> // for forward declarations of char_traits and basic_istream
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__memory/addressof.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__iterator/iterator_traits.h>
#include <iosfwd> // for forward declaration of basic_streambuf
#else
#endif //__cuda_std__

#include "../__iterator/iterator.h"
#include "../__iterator/iterator_traits.h"
#endif //__cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@

#ifndef __cuda_std__
#include <__config>
#include <__fwd/pair.h>
#include <__type_traits/add_const.h>
#include <__type_traits/is_convertible.h>
#include <__type_traits/remove_cv.h>
#include <__type_traits/void_t.h>
#include <cstddef>
#else
#endif // __cuda_std__

#include "../__fwd/pair.h"
#include "../__type_traits/add_const.h"
#include "../__type_traits/is_convertible.h"
#include "../__type_traits/remove_cv.h"
#include "../__type_traits/void_t.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator_traits.h>
#include <__type_traits/conditional.h>
#include <__type_traits/is_reference.h>
#include <__type_traits/remove_reference.h>
#include <__utility/move.h>
#else
#endif // __cuda_std__

#include "../__iterator/iterator_traits.h"
#include "../__type_traits/conditional.h"
#include "../__type_traits/is_reference.h"
#include "../__type_traits/remove_reference.h"
#include "../__utility/move.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
7 changes: 2 additions & 5 deletions include/cuda/std/detail/libcxx/include/__iterator/next.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/advance.h>
#include <__iterator/iterator_traits.h>
#include <__type_traits/enable_if.h>
#include <cassert>
#else
#endif // __cuda_std__

#include "../__iterator/advance.h"
#include "../__iterator/iterator_traits.h"
#include "../__type_traits/enable_if.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__memory/addressof.h>
#include <cstddef>
#include <iosfwd> // for forward declarations of char_traits and basic_ostream
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__memory/addressof.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__iterator/iterator_traits.h>
#include <cstddef>
#include <iosfwd> // for forward declaration of basic_streambuf
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__iterator/iterator_traits.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
7 changes: 2 additions & 5 deletions include/cuda/std/detail/libcxx/include/__iterator/prev.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/advance.h>
#include <__iterator/iterator_traits.h>
#include <__type_traits/enable_if.h>
#include <cassert>
#else
#endif // __cuda_std__

#include "../__iterator/advance.h"
#include "../__iterator/iterator_traits.h"
#include "../__type_traits/enable_if.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/reverse_iterator.h>
#include <cstddef>
#include <initializer_list>
#else
#include "../__iterator/reverse_iterator.h"
#endif // __cuda_std__

#include "../__iterator/reverse_iterator.h"

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@

#ifndef __cuda_std__
#include <__config>
#include <__iterator/iterator.h>
#include <__iterator/iterator_traits.h>
#include <__memory/addressof.h>
#include <__type_traits/void_t.h>
#else
#endif // __cuda_std__

#include "../__iterator/iterator.h"
#include "../__iterator/iterator_traits.h"
#include "../__memory/addressof.h"
#include "../__type_traits/void_t.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
6 changes: 2 additions & 4 deletions include/cuda/std/detail/libcxx/include/__iterator/size.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
#ifndef __cuda_std__
#include <__config>
#include <cstddef>
#include <__type_traits/common_type.h>
#include <__type_traits/make_signed.h>
#else
#endif // __cuda_std__

#include "../__type_traits/common_type.h"
#include "../__type_traits/make_signed.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
11 changes: 2 additions & 9 deletions include/cuda/std/detail/libcxx/include/__iterator/wrap_iter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,15 @@

#ifndef __cuda_std__
#include <__config>
#include <__debug>
#include <__iterator/iterator_traits.h>
#include <__memory/addressof.h>
#include <__memory/pointer_traits.h>
#include <__type_traits/enable_if.h>
#include <__type_traits/is_convertible.h>
#include <__type_traits/is_trivially_copy_assignable.h>
#else
#endif // __cuda_std__

#include "../__debug"
#include "../__iterator/iterator_traits.h"
#include "../__memory/addressof.h"
#include "../__memory/pointer_traits.h"
#include "../__type_traits/enable_if.h"
#include "../__type_traits/is_convertible.h"
#include "../__type_traits/is_trivially_copy_assignable.h"
#endif // __cuda_std__

#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
#pragma GCC system_header
Expand Down
Loading

0 comments on commit 25658c1

Please sign in to comment.