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/test/OpenMP/groupprivate_ast_print.cpp
clang/test/OpenMP/groupprivate_messages.cpp
clang/include/clang/AST/ASTMutationListener.h
clang/include/clang/AST/ASTNodeTraverser.h clang/include/clang/AST/DeclOpenMP.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/Sema/SemaOpenMP.h clang/lib/AST/DeclBase.cpp
clang/lib/AST/DeclOpenMP.cpp clang/lib/AST/OpenMPClause.cpp
clang/lib/Basic/OpenMPKinds.cpp clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
``````````
: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/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index d26761f64..8fe495399 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -2019,7 +2019,7 @@ Parser::DeclGroupPtrTy
Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl(
ConsumeAnnotationToken();
return Actions.OpenMP().ActOnOpenMPGroupPrivateDirective(
Loc, Helper.getIdentifiers());
- }
+ }
break;
}
case OMPD_allocate: {
@@ -2760,7 +2760,7 @@ StmtResult
Parser::ParseOpenMPDeclarativeOrExecutableDirective(
Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
}
SkipUntil(tok::annot_pragma_openmp_end);
- break;
+ break;
}
case OMPD_allocate: {
// FIXME: Should this be permitted in C++?
``````````
</details>
https://github.com/llvm/llvm-project/pull/158134
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits