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 origin/main HEAD --extensions cpp,h -- 
clang/include/clang/AST/OpenMPClause.h clang/lib/AST/OpenMPClause.cpp 
clang/lib/Sema/SemaOpenMP.cpp clang/test/OpenMP/task_transparent_messages.cpp 
clang/test/OpenMP/task_transparent_serialization.cpp 
clang/test/OpenMP/taskloop_codegen.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index ee2f4185d..0a7ed3a18 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -17523,8 +17523,8 @@ createTransparentClause(Sema &SemaRef, ASTContext &Ctx, 
Expr *ImpexTypeArg,
   if (ER.isInvalid())
     return nullptr;
 
-  return new (Ctx) OMPTransparentClause(
-      ER.get(), HelperValStmt, CaptureRegion, StartLoc, LParenLoc, EndLoc);
+  return new (Ctx) OMPTransparentClause(ER.get(), HelperValStmt, CaptureRegion,
+                                        StartLoc, LParenLoc, EndLoc);
 }
 
 OMPClause *SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
@@ -17560,9 +17560,9 @@ OMPClause 
*SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
           << TypedefName;
       return nullptr;
     }
-  return new (getASTContext())
-      OMPTransparentClause(ImpexTypeArg, HelperValStmt, CaptureRegion,
-                          StartLoc, LParenLoc, EndLoc);
+    return new (getASTContext())
+        OMPTransparentClause(ImpexTypeArg, HelperValStmt, CaptureRegion,
+                             StartLoc, LParenLoc, EndLoc);
   }
 
   if (Ty->isEnumeralType())
@@ -17586,10 +17586,10 @@ OMPClause 
*SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
           OMPTransparentClause(ImpexTypeArg, HelperValStmt, CaptureRegion,
                                StartLoc, LParenLoc, EndLoc);
     }
-    #if 0
+#if 0
     SemaRef.Diag(StartLoc, diag::err_omp_transparent_invalid_type) << Ty;
     return nullptr;
-    #endif
+#endif
   }
   if (!isNonNegativeIntegerValue(ImpexTypeArg, SemaRef, OMPC_transparent,
                                  /*StrictlyPositive=*/true))

``````````

</details>


https://github.com/llvm/llvm-project/pull/185419
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to