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 h,cpp -- 
clang/test/OpenMP/taskgraph_firstprivate_saved_ast_print.cpp 
clang/include/clang/AST/OpenMPClause.h clang/include/clang/Basic/OpenMPKinds.h 
clang/include/clang/Sema/SemaOpenMP.h clang/lib/AST/OpenMPClause.cpp 
clang/lib/Basic/OpenMPKinds.cpp clang/lib/Parse/ParseOpenMP.cpp 
clang/lib/Sema/SemaOpenMP.cpp clang/lib/Sema/TreeTransform.h 
clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.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/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp
index cb55989ed..e961dc550 100644
--- a/clang/lib/Basic/OpenMPKinds.cpp
+++ b/clang/lib/Basic/OpenMPKinds.cpp
@@ -486,8 +486,8 @@ const char 
*clang::getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind,
     case OMPC_FIRSTPRIVATE_unknown:
       return "unknown";
 #define OPENMP_FIRSTPRIVATE_KIND(Name)                                         
\
-    case OMPC_FIRSTPRIVATE_##Name:                                             
\
-      return #Name;
+  case OMPC_FIRSTPRIVATE_##Name:                                               
\
+    return #Name;
 #include "clang/Basic/OpenMPKinds.def"
     }
     llvm_unreachable("Invalid OpenMP 'firstprivate' clause type");

``````````

</details>


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

Reply via email to