Skip to content

Commit

Permalink
Fix issues with formatting of plain forwarding headers
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed May 3, 2024
1 parent 9c74469 commit a4dc4ba
Show file tree
Hide file tree
Showing 38 changed files with 491 additions and 64 deletions.
5 changes: 3 additions & 2 deletions libcudacxx/include/cuda/memory_resource
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ class resource_ref {
*/
// clang-format on

#include <cuda_runtime_api.h> // cuda_runtime_api needs to come first
#include <cuda_runtime_api.h>
// cuda_runtime_api needs to come first

#include "__cccl_config"
#include <cuda/std/detail/__config>

#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
Expand Down
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/__algorithm_
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/algorithm>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_ALGORITHM
27 changes: 20 additions & 7 deletions libcudacxx/include/cuda/std/__exception_
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,25 @@
//
//===----------------------------------------------------------------------===//

#ifndef _CUDA_STD_NEW
#define _CUDA_STD_NEW
#ifndef _CUDA_STD_EXCEPTION
#define _CUDA_STD_EXCEPTION

#include "detail/__config"
#include "detail/__pragma_pop"
#include "detail/__pragma_push"
#include "detail/libcxx/include/exception"
#include <cuda/std/detail/__config>

#endif // _CUDA_STD_NEW
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/exception>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_EXCEPTION
21 changes: 17 additions & 4 deletions libcudacxx/include/cuda/std/__memory_
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
#ifndef _CUDA_STD_MEMORY
#define _CUDA_STD_MEMORY

#include "detail/__config"
#include "detail/__pragma_pop"
#include "detail/__pragma_push"
#include "detail/libcxx/include/memory"
#include <cuda/std/detail/__config>

#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/memory>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_MEMORY
21 changes: 17 additions & 4 deletions libcudacxx/include/cuda/std/__new_
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@
#ifndef _CUDA_STD_NEW
#define _CUDA_STD_NEW

#include "detail/__config"
#include "detail/__pragma_pop"
#include "detail/__pragma_push"
#include "detail/libcxx/include/new"
#include <cuda/std/detail/__config>

#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/new>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_NEW
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/array
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/array>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_ARRAY
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/atomic>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_ATOMIC
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/barrier
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/barrier>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_BARRIER
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/bit
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/bit>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_BIT
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/cassert
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/cassert>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CASSERT
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/cfloat
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/cfloat>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CFLOAT
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/chrono
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/chrono>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CHRONO
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/climits
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/climits>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CLIMITS
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/cmath
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/cmath>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CMATH
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/complex
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/complex>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_COMPLEX
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/concepts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/concepts>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CONCEPTS
14 changes: 13 additions & 1 deletion libcudacxx/include/cuda/std/cstddef
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@

#include <cuda/std/detail/__config>

#include <cuda/std/detail/__pragma_pop>
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
# pragma GCC system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
# pragma clang system_header
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
# pragma system_header
#endif // no system header

// clang-format off
#include <cuda/std/detail/__pragma_push>

#include <cuda/std/detail/libcxx/include/cstddef>

#include <cuda/std/detail/__pragma_pop>
// clang-format on

#endif // _CUDA_STD_CSTDDEF
Loading

0 comments on commit a4dc4ba

Please sign in to comment.