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 cpp -- 
clang/lib/Sema/SemaDecl.cpp clang/test/SemaCXX/paren-list-agg-init.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 41eb7c797..401d1f34f 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -13784,10 +13784,10 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr 
*Init, bool DirectInit) {
 
     MultiExprArg Args = Init;
     if (auto *CXXDirectInit = dyn_cast<ParenListExpr>(Init))
-        Args = MultiExprArg(CXXDirectInit->getExprs(),
-                            CXXDirectInit->getNumExprs());
+      Args =
+          MultiExprArg(CXXDirectInit->getExprs(), 
CXXDirectInit->getNumExprs());
     else if (auto *CXXDirectInit = dyn_cast<CXXParenListInitExpr>(Init))
-        Args = CXXDirectInit->getInitExprs();
+      Args = CXXDirectInit->getInitExprs();
 
     // Try to correct any TypoExprs in the initialization arguments.
     for (size_t Idx = 0; Idx < Args.size(); ++Idx) {

``````````

</details>


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

Reply via email to