We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[[gnu::*]]
1 parent 436cde6 commit e730649Copy full SHA for e730649
libcudacxx/include/cuda/std/__cccl/attributes.h
@@ -103,7 +103,7 @@
103
104
#if _CCCL_CUDA_COMPILER(NVCC, >=, 12, 5)
105
# define _CCCL_PURE __nv_pure__
106
-#elif _CCCL_HAS_CPP_ATTRIBUTE(pure) || _CCCL_COMPILER(CLANG)
+#elif _CCCL_HAS_CPP_ATTRIBUTE(gnu::pure)
107
# define _CCCL_PURE [[gnu::pure]]
108
#elif _CCCL_COMPILER(MSVC)
109
# define _CCCL_PURE __declspec(noalias)
@@ -112,7 +112,7 @@
112
#endif
113
114
#if !_CCCL_COMPILER(MSVC) // _CCCL_HAS_CPP_ATTRIBUTE(const) doesn't work with MSVC
115
-# if _CCCL_HAS_CPP_ATTRIBUTE(const) || _CCCL_COMPILER(CLANG)
+# if _CCCL_HAS_CPP_ATTRIBUTE(gnu::const)
116
# define _CCCL_CONST [[gnu::const]]
117
# else
118
# define _CCCL_CONST _CCCL_PURE
0 commit comments