[clang] [HLSL] Resource initialization by constructors (PR #135120)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 9 21:09:23 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,cpp -- clang/include/clang/Sema/SemaHLSL.h clang/lib/CodeGen/CGHLSLBuiltins.cpp clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CGHLSLRuntime.h clang/lib/CodeGen/CodeGenModule.cpp clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.h clang/lib/Sema/HLSLExternalSemaSource.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaHLSL.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaHLSL.cpp b/clang/lib/Sema/SemaHLSL.cpp
index 299733f8c..27959f61f 100644
--- a/clang/lib/Sema/SemaHLSL.cpp
+++ b/clang/lib/Sema/SemaHLSL.cpp
@@ -3208,7 +3208,7 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
 }
 
 static bool initVarDeclWithCtor(Sema &S, VarDecl *VD,
-                                       MutableArrayRef<Expr *> Args) {
+                                MutableArrayRef<Expr *> Args) {
   InitializedEntity Entity = InitializedEntity::InitializeVariable(VD);
   InitializationKind Kind = InitializationKind::CreateDirect(
       VD->getLocation(), SourceLocation(), SourceLocation());

``````````

</details>


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


More information about the cfe-commits mailing list