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,h -- clang/lib/CIR/CodeGen/CIRGenCXXABI.h clang/include/clang/CIR/MissingFeatures.h clang/lib/CIR/CodeGen/CIRGenModule.cpp clang/lib/CIR/CodeGen/CIRGenModule.h clang/test/CIR/CodeGen/array.cpp clang/test/CIR/CodeGen/basic.cpp clang/test/CIR/CodeGen/binop.cpp clang/test/CIR/CodeGen/call.cpp clang/test/CIR/CodeGen/cast.cpp clang/test/CIR/CodeGen/cmp.cpp clang/test/CIR/CodeGen/if.cpp clang/test/CIR/CodeGen/int-to-bool.cpp clang/test/CIR/CodeGen/local-vars.cpp clang/test/CIR/CodeGen/loop.cpp clang/test/CIR/CodeGen/nullptr-init.cpp clang/test/CIR/CodeGen/struct.cpp clang/test/CIR/CodeGen/unary.cpp clang/test/CIR/Lowering/array.cpp clang/test/CIR/Lowering/basic.cpp clang/test/CIR/Lowering/func-simple.cpp clang/test/CIR/Lowering/local-vars.cpp clang/test/CIR/func-simple.cpp clang/test/CIR/global-var-linkage.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 8397a5c78..0b266df13 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -368,8 +368,8 @@ void CIRGenModule::emitGlobalVarDefinition(const clang::VarDecl *vd, const mlir::Type type = convertType(vd->getType()); if (clang::IdentifierInfo *identifier = vd->getIdentifier()) { StringRef name = getMangledName(GlobalDecl(vd)); - auto varOp = builder.create<cir::GlobalOp>(getLoc(vd->getSourceRange()), - name, type); + auto varOp = + builder.create<cir::GlobalOp>(getLoc(vd->getSourceRange()), name, type); // TODO(CIR): This code for processing initial values is a placeholder // until class ConstantEmitter is upstreamed and the code for processing // constant expressions is filled out. Only the most basic handling of `````````` </details> https://github.com/llvm/llvm-project/pull/137094 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits