[clang] [HLSL] Change default linkage of HLSL functions to internal (PR #93336)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 12:43:15 PDT 2024


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 3c3e71d929457daf4be425a35920cc53ed875fab bc226afcdd8c358f730c1243a11f7bbb17b8b209 -- clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CGHLSLRuntime.h clang/lib/CodeGen/CodeGenFunction.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGHLSLRuntime.cpp b/clang/lib/CodeGen/CGHLSLRuntime.cpp
index 0f18c55ada..8e5123daf2 100644
--- a/clang/lib/CodeGen/CGHLSLRuntime.cpp
+++ b/clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -354,7 +354,7 @@ llvm::Value *CGHLSLRuntime::emitInputSemantic(IRBuilder<> &B,
 }
 
 void CGHLSLRuntime::emitFunctionProlog(const FunctionDecl *FD,
-                                      llvm::Function *Fn) {
+                                       llvm::Function *Fn) {
   if (!FD || !Fn)
     return;
 

``````````

</details>


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


More information about the cfe-commits mailing list