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,c --
clang/lib/Parse/ParseOpenMP.cpp clang/test/OpenMP/metadirective_ast_print.c
clang/test/OpenMP/metadirective_messages.cpp
``````````
</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 21474712b..89c5750d6 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -2764,8 +2764,7 @@ StmtResult
Parser::ParseOpenMPDeclarativeOrExecutableDirective(
Diag(Tok, diag::err_omp_unknown_clause)
<< PP.getSpelling(Tok) << "metadirective";
}
- if (getLangOpts().OpenMP < 52 &&
- CKind == OMPC_otherwise) {
+ if (getLangOpts().OpenMP < 52 && CKind == OMPC_otherwise) {
Diag(Tok, diag::err_omp_unexpected_clause)
<< PP.getSpelling(Tok) << "metadirective";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/128640
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits