[libclc] [libclc] Add custom CMake language handling for OpenCL files (PR #185243)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 7 19:15:18 PST 2026
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 origin/main HEAD --extensions cl -- libclc/cmake/modules/CMakeCLCCompilerTest.cl --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libclc/cmake/modules/CMakeCLCCompilerTest.cl b/libclc/cmake/modules/CMakeCLCCompilerTest.cl
index f8074c617..e84fd83ba 100644
--- a/libclc/cmake/modules/CMakeCLCCompilerTest.cl
+++ b/libclc/cmake/modules/CMakeCLCCompilerTest.cl
@@ -1,3 +1 @@
-kernel void __test_clc(global int *out) {
- *out = 0;
-}
+kernel void __test_clc(global int *out) { *out = 0; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/185243
More information about the cfe-commits
mailing list