[clang] opencl: Ensure printf symbol is not mangled. (PR #150210)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 28 01:41:10 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/opencl-c-base.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Headers/opencl-c-base.h b/clang/lib/Headers/opencl-c-base.h
index 49987a044..6206a3478 100644
--- a/clang/lib/Headers/opencl-c-base.h
+++ b/clang/lib/Headers/opencl-c-base.h
@@ -703,7 +703,8 @@ template <typename _Tp> struct __remove_address_space<__constant _Tp> {
 #define CLINKAGE
 #endif
 
-CLINKAGE int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2)));
+CLINKAGE int printf(__constant const char *st, ...)
+    __attribute__((format(printf, 1, 2)));
 
 #undef CLINKAGE
 #endif

``````````

</details>


https://github.com/llvm/llvm-project/pull/150210


More information about the cfe-commits mailing list