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 c,cpp --
clang/test/CIR/CodeGenOpenACC/exit-data.c
clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp
clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
index 3cd3d2c52..0fcdf7be5 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -3169,8 +3169,8 @@ void
ExitDataOp::getCanonicalizationPatterns(RewritePatternSet &results,
results.add<RemoveConstantIfCondition<ExitDataOp>>(context);
}
-void ExitDataOp::addAsyncOnly(
- MLIRContext *context, llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
+void ExitDataOp::addAsyncOnly(MLIRContext *context,
+ llvm::ArrayRef<DeviceType> effectiveDeviceTypes)
{
assert(effectiveDeviceTypes.empty());
assert(!getAsyncAttr());
assert(!getAsyncOperand());
@@ -3189,7 +3189,7 @@ void ExitDataOp::addAsyncOperand(
}
void ExitDataOp::addWaitOnly(MLIRContext *context,
- llvm::ArrayRef<DeviceType> effectiveDeviceTypes)
{
+ llvm::ArrayRef<DeviceType> effectiveDeviceTypes) {
assert(effectiveDeviceTypes.empty());
assert(!getWaitAttr());
assert(getWaitOperands().empty());
``````````
</details>
https://github.com/llvm/llvm-project/pull/146167
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits