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/task_transparent_messages.cpp
clang/test/OpenMP/task_transparent_serialization.cpp
clang/include/clang/AST/OpenMPClause.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/Sema/SemaOpenMP.h clang/lib/AST/OpenMPClause.cpp
clang/lib/AST/StmtProfile.cpp clang/lib/CodeGen/CGOpenMPRuntime.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
clang/test/OpenMP/for_private_reduction_codegen.cpp
clang/test/OpenMP/task_ast_print.cpp clang/test/OpenMP/task_codegen.cpp
clang/test/OpenMP/taskloop_ast_print.cpp clang/test/OpenMP/taskloop_codegen.cpp
clang/tools/libclang/CIndex.cpp llvm/include/llvm/Frontend/OpenMP/ClauseT.h
--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 855bc09b1..54da360f9 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -17035,10 +17035,11 @@ ExprResult
SemaOpenMP::VerifyPositiveIntegerConstantInClause(
if (CKind == OMPC_transparent) {
OpenMPImpexType ResultType =
static_cast<OpenMPImpexType>(Result.getExtValue());
- if (Result.isNegative() || (ResultType != OpenMPImpexType::OMP_NotImpex &&
- ResultType != OpenMPImpexType::OMP_Impex &&
- ResultType != OpenMPImpexType::OMP_Import &&
- ResultType != OpenMPImpexType::OMP_Export) ||
+ if (Result.isNegative() ||
+ (ResultType != OpenMPImpexType::OMP_NotImpex &&
+ ResultType != OpenMPImpexType::OMP_Impex &&
+ ResultType != OpenMPImpexType::OMP_Import &&
+ ResultType != OpenMPImpexType::OMP_Export) ||
Result >= static_cast<int64_t>(OpenMPImpexType::OMP_Export))
Diag(E->getExprLoc(), diag::err_omp_transparent_invalid_value);
}
@@ -17515,11 +17516,11 @@ OMPClause
*SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
StartLoc, LParenLoc, EndLoc);
if (Ty->isIntegerType()) {
- if (isNonNegativeIntegerValue(ImpexTypeArg, SemaRef, OMPC_transparent,
+ if (isNonNegativeIntegerValue(ImpexTypeArg, SemaRef, OMPC_transparent,
/*StrictlyPositive=*/false)) {
return createTransparentClause(SemaRef, getASTContext(), ImpexTypeArg,
StartLoc, LParenLoc, EndLoc);
- }
+ }
}
SemaRef.Diag(StartLoc, diag::err_omp_transparent_invalid_type)
<< Ty.getAsString();
``````````
</details>
https://github.com/llvm/llvm-project/pull/174646
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits