Skip to content

Commit

Permalink
move _CCCL_COMPILER_CLANG to the new macro (#2859)
Browse files Browse the repository at this point in the history
  • Loading branch information
davebayer authored Nov 19, 2024
1 parent c5573f1 commit 968bb30
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 43 deletions.
4 changes: 2 additions & 2 deletions cub/cub/block/block_load.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ InternalLoadDirectBlockedVectorized(int linear_tid, const T* block_src_ptr, T (&
// Find biggest memory access word that T is a whole multiple of
using device_word_t = typename UnitWord<T>::DeviceWord;
_CCCL_DIAG_PUSH
# if defined(CUB_CLANG_VERSION) && CUB_CLANG_VERSION >= 100000
# if _CCCL_COMPILER(CLANG, >=, 10)
_CCCL_DIAG_SUPPRESS_CLANG("-Wsizeof-array-div")
# endif // defined(CUB_CLANG_VERSION) && CUB_CLANG_VERSION >= 100000
# endif // _CCCL_COMPILER(CLANG, >=, 10)
constexpr int total_words = static_cast<int>(sizeof(dst_items) / sizeof(device_word_t));
_CCCL_DIAG_POP
constexpr int vector_size = (total_words % 4 == 0) ? 4 : (total_words % 2 == 0) ? 2 : 1;
Expand Down
6 changes: 3 additions & 3 deletions cub/cub/util_compiler.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
# define CUB_MSVC_VERSION _CCCL_MSVC_VERSION
//! deprecated [Since 2.7]
# define CUB_MSVC_VERSION_FULL _CCCL_MSVC_VERSION_FULL
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
//! deprecated [Since 2.7]
# define CUB_HOST_COMPILER CUB_HOST_COMPILER_CLANG
//! deprecated [Since 2.7]
# define CUB_CLANG_VERSION _CCCL_CLANG_VERSION
# define CUB_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#elif _CCCL_COMPILER(GCC)
//! deprecated [Since 2.7]
# define CUB_HOST_COMPILER CUB_HOST_COMPILER_GCC
Expand All @@ -95,7 +95,7 @@
#elif _CCCL_COMPILER(GCC)
//! deprecated [Since 2.7]
# define CUB_DEVICE_COMPILER CUB_DEVICE_COMPILER_GCC
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
// CUDA-capable clang should behave similar to NVCC.
# if defined(_CCCL_CUDA_COMPILER_NVCC)
//! deprecated [Since 2.7]
Expand Down
2 changes: 1 addition & 1 deletion cub/cub/util_cpp_dialect.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
// Compiler checks:
# if _CCCL_COMPILER(GCC, <, 5)
CUB_COMPILER_DEPRECATION(GCC 5.0);
# elif defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 70000
# elif _CCCL_COMPILER(CLANG, <, 7)
CUB_COMPILER_DEPRECATION(Clang 7.0);
# elif defined(_CCCL_COMPILER_MSVC) && _CCCL_MSVC_VERSION < 1910
// <2017. Hard upgrade message:
Expand Down
2 changes: 1 addition & 1 deletion cub/cub/util_deprecated.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#elif defined(_CCCL_COMPILER_MSVC)
# define CUB_DEPRECATED __declspec(deprecated)
# define CUB_DEPRECATED_BECAUSE(MSG) __declspec(deprecated(MSG))
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
# define CUB_DEPRECATED __attribute__((deprecated))
# define CUB_DEPRECATED_BECAUSE(MSG) __attribute__((deprecated(MSG)))
#elif _CCCL_COMPILER(GCC)
Expand Down
2 changes: 1 addition & 1 deletion cub/cub/util_type.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CUB_NAMESPACE_BEGIN
# endif // !defined(__CUDACC_RTC_INT128__)
# else // !defined(__CUDACC_RTC__)
# if _CCCL_CUDACC_AT_LEAST(11, 5)
# if _CCCL_COMPILER(GCC) || defined(_CCCL_COMPILER_CLANG) || _CCCL_COMPILER(ICC) || _CCCL_COMPILER(NVHPC)
# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG) || _CCCL_COMPILER(ICC) || _CCCL_COMPILER(NVHPC)
# define CUB_IS_INT128_ENABLED 1
# endif // GCC || CLANG || ICC || NVHPC
# endif // _CCCL_CUDACC_AT_LEAST(11, 5)
Expand Down
2 changes: 1 addition & 1 deletion cudax/include/cuda/experimental/__async/utility.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ constexpr size_t __next(long)

// Prior to Clang 12, we can't use the __slot trick to erase long type names
// because of a compiler bug. We'll just use the original type name in that case.
#if defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 120000
#if _CCCL_COMPILER(CLANG, <, 12)

template <class _Type>
using __zip = _Type;
Expand Down
8 changes: 4 additions & 4 deletions libcudacxx/include/cuda/std/__cccl/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@

// Passing objects with nested [[no_unique_address]] to kernels leads to data corruption
// This happens up to clang18
#if !defined(_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS) && defined(_CCCL_COMPILER_CLANG)
#if !defined(_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS) && _CCCL_COMPILER(CLANG)
# define _CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS
#endif // !_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS && _CCCL_COMPILER_CLANG
#endif // !_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS && _CCCL_COMPILER(CLANG)

#if _CCCL_HAS_CPP_ATTRIBUTE(nodiscard) || (defined(_CCCL_COMPILER_MSVC) && _CCCL_STD_VER >= 2017)
# define _CCCL_NODISCARD [[nodiscard]]
Expand All @@ -88,11 +88,11 @@

// NVCC below 11.3 does not support nodiscard on friend operators
// It always fails with clang
#if _CCCL_CUDACC_BELOW(11, 3) || defined(_CCCL_COMPILER_CLANG)
#if _CCCL_CUDACC_BELOW(11, 3) || _CCCL_COMPILER(CLANG)
# define _CCCL_NODISCARD_FRIEND friend
#else // ^^^ _CCCL_CUDACC_BELOW(11, 3) ^^^ / vvv _CCCL_CUDACC_AT_LEAST(11, 3) vvv
# define _CCCL_NODISCARD_FRIEND _CCCL_NODISCARD friend
#endif // _CCCL_CUDACC_AT_LEAST(11, 3) && !_CCCL_COMPILER_CLANG
#endif // _CCCL_CUDACC_AT_LEAST(11, 3) && !_CCCL_COMPILER(CLANG)

// NVCC below 11.3 does not support attributes on alias declarations
#if _CCCL_CUDACC_BELOW(11, 3)
Expand Down
8 changes: 4 additions & 4 deletions libcudacxx/include/cuda/std/__cccl/builtin.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

// clang prior to clang-10 supports __builtin_bit_cast but it is not a constant expression
// NVCC prior to 11.7 cannot parse __builtin_bit_cast
#if (defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 100000) || _CCCL_CUDACC_BELOW(11, 7)
#if _CCCL_COMPILER(CLANG, <, 10) || _CCCL_CUDACC_BELOW(11, 7)
# undef _CCCL_BUILTIN_BIT_CAST
#endif // clang < 10 || nvcc < 11.7

Expand Down Expand Up @@ -189,7 +189,7 @@

// NVCC prior to 11.3 and clang prior to clang-10 accept __builtin_launder but break with a compiler error about an
// invalid return type
#if (defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 100000) || _CCCL_CUDACC_BELOW(11, 3)
#if _CCCL_COMPILER(CLANG, <, 10) || _CCCL_CUDACC_BELOW(11, 3)
# undef _CCCL_BUILTIN_LAUNDER
#endif // clang < 10 || nvcc < 11.3

Expand Down Expand Up @@ -264,7 +264,7 @@
#endif // _CCCL_CHECK_BUILTIN(is_array)

// clang prior to clang-19 gives wrong results for __is_array of _Tp[0]
#if defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 190000
#if _CCCL_COMPILER(CLANG, <, 19)
# undef _CCCL_BUILTIN_IS_ARRAY
#endif // clang < 19

Expand Down Expand Up @@ -333,7 +333,7 @@
#endif // _CCCL_CHECK_BUILTIN(is_fundamental)

// clang prior to clang-10 gives wrong results for __is_fundamental
#if defined(_CCCL_COMPILER_CLANG) && _CCCL_CLANG_VERSION < 100000
#if _CCCL_COMPILER(CLANG, <, 10)
# undef _CCCL_BUILTIN_IS_FUNDAMENTAL
#endif // clang < 10

Expand Down
5 changes: 2 additions & 3 deletions libcudacxx/include/cuda/std/__cccl/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#elif defined(__NVCOMPILER)
# define _CCCL_COMPILER_NVHPC _CCCL_COMPILER_MAKE_VERSION(__NVCOMPILER_MAJOR__, __NVCOMPILER_MINOR__)
#elif defined(__clang__)
# define _CCCL_COMPILER_CLANG
# define _CCCL_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
# define _CCCL_COMPILER_CLANG _CCCL_COMPILER_MAKE_VERSION(__clang_major__, __clang_minor__)
#elif defined(__GNUC__)
# define _CCCL_COMPILER_GCC _CCCL_COMPILER_MAKE_VERSION(__GNUC__, __GNUC_MINOR__)
#elif defined(_MSC_VER)
Expand Down Expand Up @@ -69,7 +68,7 @@
# define _CCCL_CUDA_COMPILER_NVCC
#elif defined(_NVHPC_CUDA)
# define _CCCL_CUDA_COMPILER_NVHPC
#elif defined(__CUDA__) && defined(_CCCL_COMPILER_CLANG)
#elif defined(__CUDA__) && _CCCL_COMPILER(CLANG)
# define _CCCL_CUDA_COMPILER_CLANG
#endif

Expand Down
8 changes: 4 additions & 4 deletions libcudacxx/include/cuda/std/__cccl/diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#endif // no system header

// Enable us to selectively silence host compiler warnings
#ifdef _CCCL_COMPILER_CLANG
#if _CCCL_COMPILER(CLANG)
# define _CCCL_DIAG_PUSH _CCCL_PRAGMA(clang diagnostic push)
# define _CCCL_DIAG_POP _CCCL_PRAGMA(clang diagnostic pop)
# define _CCCL_DIAG_SUPPRESS_CLANG(str) _CCCL_PRAGMA(clang diagnostic ignored str)
Expand Down Expand Up @@ -74,7 +74,7 @@
#endif

// Convenient shortcuts to silence common warnings
#if defined(_CCCL_COMPILER_CLANG)
#if _CCCL_COMPILER(CLANG)
# define _CCCL_SUPPRESS_DEPRECATED_PUSH \
_CCCL_DIAG_PUSH \
_CCCL_DIAG_SUPPRESS_CLANG("-Wdeprecated") \
Expand All @@ -101,11 +101,11 @@
_CCCL_DIAG_PUSH \
_CCCL_DIAG_SUPPRESS_MSVC(4996)
# define _CCCL_SUPPRESS_DEPRECATED_POP _CCCL_DIAG_POP
#else // !_CCCL_COMPILER_CLANG && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) &&
#else // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) &&
// !_CCCL_COMPILER_MSVC
# define _CCCL_SUPPRESS_DEPRECATED_PUSH
# define _CCCL_SUPPRESS_DEPRECATED_POP
#endif // !_CCCL_COMPILER_CLANG && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) &&
#endif // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) &&
// !_CCCL_COMPILER_MSVC

// Enable us to selectively silence cuda compiler warnings
Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__cccl/rtti.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# if _CPPRTTI == 0
# define _CCCL_NO_RTTI
# endif
# elif defined(_CCCL_COMPILER_CLANG)
# elif _CCCL_COMPILER(CLANG)
# if !_CCCL_HAS_FEATURE(cxx_rtti)
# define _CCCL_NO_RTTI
# endif
Expand All @@ -67,7 +67,7 @@
# define _CCCL_NO_TYPEID
# elif defined(_CCCL_COMPILER_MSVC)
// No-op, MSVC always supports typeid even when RTTI is disabled
# elif defined(_CCCL_COMPILER_CLANG)
# elif _CCCL_COMPILER(CLANG)
# if !_CCCL_HAS_FEATURE(cxx_rtti)
# define _CCCL_NO_TYPEID
# endif
Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__cccl/system_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Enforce that cccl headers are treated as system headers
#if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) || _CCCL_COMPILER(ICC)
# define _CCCL_FORCE_SYSTEM_HEADER_GCC
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
# define _CCCL_FORCE_SYSTEM_HEADER_CLANG
#elif defined(_CCCL_COMPILER_MSVC)
# define _CCCL_FORCE_SYSTEM_HEADER_MSVC
Expand All @@ -29,7 +29,7 @@
&& !defined(_LIBCUDACXX_DISABLE_PRAGMA_GCC_SYSTEM_HEADER)
# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) || _CCCL_COMPILER(ICC)
# define _CCCL_IMPLICIT_SYSTEM_HEADER_GCC
# elif defined(_CCCL_COMPILER_CLANG)
# elif _CCCL_COMPILER(CLANG)
# define _CCCL_IMPLICIT_SYSTEM_HEADER_CLANG
# elif defined(_CCCL_COMPILER_MSVC)
# define _CCCL_IMPLICIT_SYSTEM_HEADER_MSVC
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__concepts/__concept_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ _LIBCUDACXX_HIDE_FROM_ABI constexpr bool _Is_true()
return true;
}

# if defined(_CCCL_COMPILER_CLANG) || defined(_CCCL_COMPILER_MSVC)
# if _CCCL_COMPILER(CLANG) || defined(_CCCL_COMPILER_MSVC)
template <bool _Bp>
_LIBCUDACXX_HIDE_FROM_ABI _Concept::_Enable_if_t<_Bp> _Requires()
{}
Expand Down
14 changes: 7 additions & 7 deletions libcudacxx/include/cuda/std/detail/libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ extern "C++" {

# if defined(_CCCL_CUDA_COMPILER)
# define _LIBCUDACXX_ATOMIC_ALWAYS_LOCK_FREE(size, ptr) (size <= 8)
# elif defined(_CCCL_COMPILER_CLANG) || _CCCL_COMPILER(GCC)
# elif _CCCL_COMPILER(CLANG) || _CCCL_COMPILER(GCC)
# define _LIBCUDACXX_ATOMIC_ALWAYS_LOCK_FREE(...) __atomic_always_lock_free(__VA_ARGS__)
# endif // _CCCL_CUDA_COMPILER

# if defined(_CCCL_COMPILER_CLANG)
# if _CCCL_COMPILER(CLANG)

// _LIBCUDACXX_ALTERNATE_STRING_LAYOUT is an old name for
// _LIBCUDACXX_ABI_ALTERNATE_STRING_LAYOUT left here for backward compatibility.
Expand Down Expand Up @@ -447,7 +447,7 @@ typedef __char32_t char32_t;
# if !defined(__SANITIZE_ADDRESS__)
# define _LIBCUDACXX_HAS_NO_ASAN
# endif // !__SANITIZE_ADDRESS__
# elif defined(_CCCL_COMPILER_CLANG)
# elif _CCCL_COMPILER(CLANG)
# if !_CCCL_HAS_FEATURE(address_sanitizer)
# define _LIBCUDACXX_HAS_NO_ASAN
# endif // !_CCCL_HAS_FEATURE(address_sanitizer)
Expand Down Expand Up @@ -570,13 +570,13 @@ typedef unsigned short char16_t;
typedef unsigned int char32_t;
# endif // _LIBCUDACXX_HAS_NO_UNICODE_CHARS

# if _CCCL_COMPILER(GCC) || defined(_CCCL_COMPILER_CLANG)
# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG)
# define _LIBCUDACXX_NOALIAS __attribute__((__malloc__))
# else
# define _LIBCUDACXX_NOALIAS
# endif

# if _CCCL_HAS_FEATURE(cxx_explicit_conversions) || _CCCL_COMPILER(GCC) || defined(_CCCL_COMPILER_CLANG)
# if _CCCL_HAS_FEATURE(cxx_explicit_conversions) || _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG)
# define _LIBCUDACXX_EXPLICIT explicit
# else
# define _LIBCUDACXX_EXPLICIT
Expand Down Expand Up @@ -738,7 +738,7 @@ typedef unsigned int char32_t;
// # define _LIBCUDACXX_HAS_C_ATOMIC_IMP
# if _CCCL_COMPILER(ICC)
# define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP
# elif defined(_CCCL_COMPILER_CLANG)
# elif _CCCL_COMPILER(CLANG)
# define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP
# elif _CCCL_COMPILER(GCC)
# define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP
Expand Down Expand Up @@ -876,7 +876,7 @@ typedef unsigned int char32_t;

// NVRTC has a bug that prevented the use of delegated constructors, as it did not accept execution space annotations.
// This creates a whole lot of boilerplate that we can avoid through a macro (see nvbug3961621)
# if _CCCL_COMPILER(NVRTC) || (_CCCL_CUDACC_BELOW(11, 3) && defined(_CCCL_COMPILER_CLANG))
# if _CCCL_COMPILER(NVRTC) || (_CCCL_CUDACC_BELOW(11, 3) && _CCCL_COMPILER(CLANG))
# define _LIBCUDACXX_DELEGATE_CONSTRUCTORS(__class, __baseclass, ...) \
using __base = __baseclass<__VA_ARGS__>; \
template <class... _Args, enable_if_t<_CCCL_TRAIT(is_constructible, __base, _Args...), int> = 0> \
Expand Down
2 changes: 1 addition & 1 deletion thrust/testing/unittest/runtime_static_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class static_assert_exception

namespace detail
{
#if _CCCL_COMPILER(GCC) || defined(_CCCL_COMPILER_CLANG)
#if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG)
__attribute__((used))
#endif
_CCCL_DEVICE static static_assert_exception* device_exception = nullptr;
Expand Down
6 changes: 3 additions & 3 deletions thrust/thrust/detail/config/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
#elif _CCCL_COMPILER(ICC)
//! deprecated [Since 2.7]
# define THRUST_HOST_COMPILER THRUST_HOST_COMPILER_INTEL
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
//! deprecated [Since 2.7]
# define THRUST_HOST_COMPILER THRUST_HOST_COMPILER_CLANG
//! deprecated [Since 2.7]
# define THRUST_CLANG_VERSION _CCCL_CLANG_VERSION
# define THRUST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
#elif _CCCL_COMPILER(GCC)
//! deprecated [Since 2.7]
# define THRUST_HOST_COMPILER THRUST_HOST_COMPILER_GCC
Expand Down Expand Up @@ -97,7 +97,7 @@
#elif _CCCL_COMPILER(GCC)
//! deprecated [Since 2.7]
# define THRUST_DEVICE_COMPILER THRUST_DEVICE_COMPILER_GCC
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
// CUDA-capable clang should behave similar to NVCC.
# if defined(__CUDA__)
//! deprecated [Since 2.7]
Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/detail/config/compiler_fence.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
# endif // _CCCL_COMPILER(GCC, >=, 4, 2)

// unknown case
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
# define __thrust_compiler_fence() __sync_synchronize()
#else

Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/detail/config/cpp_dialect.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
// Compiler checks:
# if _CCCL_COMPILER(GCC, <, 5)
THRUST_COMPILER_DEPRECATION(GCC 5.0);
# elif defined(_CCCL_COMPILER_CLANG) && THRUST_CLANG_VERSION < 70000
# elif _CCCL_COMPILER(CLANG, <, 7)
THRUST_COMPILER_DEPRECATION(Clang 7.0);
# elif defined(_CCCL_COMPILER_MSVC) && THRUST_MSVC_VERSION < 1910
// <2017. Hard upgrade message:
Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/detail/config/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#elif defined(_CCCL_COMPILER_MSVC)
# define THRUST_DEPRECATED __declspec(deprecated)
# define THRUST_DEPRECATED_BECAUSE(MSG) __declspec(deprecated(MSG))
#elif defined(_CCCL_COMPILER_CLANG)
#elif _CCCL_COMPILER(CLANG)
# define THRUST_DEPRECATED __attribute__((deprecated))
# define THRUST_DEPRECATED_BECAUSE(MSG) __attribute__((deprecated(MSG)))
#elif _CCCL_COMPILER(GCC)
Expand Down

0 comments on commit 968bb30

Please sign in to comment.