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 6ffc4451037bbae26cce51fb80418f8e9ed2ac84 
8457635e366f791d03604384c232bc3d270ce0f8 --extensions cpp,h -- 
clang/include/clang/Sema/SemaHLSL.h clang/lib/Sema/SemaChecking.cpp 
clang/lib/Sema/SemaHLSL.cpp clang/lib/Sema/SemaInit.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 f9f1473d4e..c48a4a093a 100644
--- a/clang/lib/Sema/SemaHLSL.cpp
+++ b/clang/lib/Sema/SemaHLSL.cpp
@@ -2582,10 +2582,9 @@ static bool CastInitializer(Sema &S, ASTContext &Ctx, 
Expr *E,
                             llvm::SmallVectorImpl<QualType> &DestTypes) {
   if (List.size() >= DestTypes.size())
     return false;
-  InitializedEntity Entity =
-      InitializedEntity::InitializeParameter(Ctx, DestTypes[List.size()], 
false);
-  ExprResult Res =
-      S.PerformCopyInitialization(Entity, E->getBeginLoc(), E);
+  InitializedEntity Entity = InitializedEntity::InitializeParameter(
+      Ctx, DestTypes[List.size()], false);
+  ExprResult Res = S.PerformCopyInitialization(Entity, E->getBeginLoc(), E);
   if (Res.isInvalid())
     return false;
   Expr *Init = Res.get();

``````````

</details>


https://github.com/llvm/llvm-project/pull/123141
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to