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 c,h,cpp --
clang/test/CIR/CodeGen/long-double-format-attr.c
clang/lib/CIR/CodeGen/CIRGenModule.cpp clang/lib/CIR/CodeGen/CIRGenTypes.cpp
clang/lib/CIR/CodeGen/CIRGenTypes.h clang/lib/CIR/Dialect/IR/CIRDialect.cpp
clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerModule.cpp
clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.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/CIR/Dialect/IR/CIRDialect.cpp
b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
index e48e72afa..b78ca14c1 100644
--- a/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+++ b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -361,9 +361,8 @@ cir::CIRDialect::verifyOperationAttribute(mlir::Operation
*op,
<< mlir::ModuleOp::getOperationName() << "'";
auto format = mlir::dyn_cast<cir::LongDoubleFormatAttr>(attr.getValue());
if (!format)
- return op->emitOpError()
- << "expects '" << getLongDoubleFormatAttrName()
- << "' to be a #cir.long_double_format attribute";
+ return op->emitOpError() << "expects '" << getLongDoubleFormatAttrName()
+ << "' to be a #cir.long_double_format
attribute";
auto triple = op->getAttrOfType<mlir::StringAttr>(getTripleAttrName());
if (!triple)
diff --git a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
index 2948c80a3..866b1b41e 100644
--- a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+++ b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
@@ -4830,8 +4830,8 @@ void ConvertCIRToLLVMPass::processCIRAttrs(mlir::ModuleOp
module) {
auto flag = mlir::LLVM::ModuleFlagAttr::get(
module.getContext(), mlir::LLVM::ModFlagBehavior::Error,
builder.getStringAttr("long-double-type"),
- builder.getStringAttr(cir::stringifyLongDoubleFormat(
- ldFormat.getValue())));
+ builder.getStringAttr(
+ cir::stringifyLongDoubleFormat(ldFormat.getValue())));
mlir::LLVM::ModuleFlagsOp::create(builder, module.getLoc(),
builder.getArrayAttr({flag}));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/234275
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits