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 3e6f618e86f5fbad2c2d5802416ec3d3366a2837 
eed71b8c5a5ae670fa33ce4c20c9cbb72bbcf511 --extensions cpp -- 
clang/lib/Sema/SemaDeclAttr.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index c664ae30d2..769f5316ed 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -2925,12 +2925,12 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const 
ParsedAttr &AL) {
       return;
   }
 
-  if (!llvm::all_of(WGSize,  [](uint32_t Size) { return Size == 0; })) {
+  if (!llvm::all_of(WGSize, [](uint32_t Size) { return Size == 0; })) {
     for (unsigned i = 0; i < 3; ++i) {
       const Expr *E = AL.getArgAsExpr(i);
       if (WGSize[i] == 0) {
         S.Diag(AL.getLoc(), diag::err_attribute_argument_is_zero)
-          << AL << E->getSourceRange();
+            << AL << E->getSourceRange();
         return;
       }
     }

``````````

</details>


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

Reply via email to