[clang] [CUDA] Do not include obsolete texture_fetch_functions.h (PR #151766)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 1 13:18:09 PDT 2025
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 HEAD~1 HEAD --extensions h -- clang/lib/Headers/__clang_cuda_runtime_wrapper.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
index 87245541b..b1e59248a 100644
--- a/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
+++ b/clang/lib/Headers/__clang_cuda_runtime_wrapper.h
@@ -387,7 +387,8 @@ __host__ __device__ void __nv_tex_surf_handler(const char *name, T *ptr,
#include "surface_indirect_functions.h"
#if CUDA_VERSION < 13000
// Direct texture fetch functions had been deprecated since CUDA-11.
-// The file in CUDA-12 only carried unused texture types, and is no longer needed.
+// The file in CUDA-12 only carried unused texture types, and is no longer
+// needed.
#include "texture_fetch_functions.h"
#endif // CUDA_VERSION < 13000
#include "texture_indirect_functions.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/151766
More information about the cfe-commits
mailing list