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,cl -- clang/test/CodeGenOpenCL/test-printf-nvptx.cl clang/lib/AST/ASTContext.cpp clang/lib/AST/Decl.cpp clang/lib/CodeGen/CGGPUBuiltin.cpp clang/lib/Sema/SemaDecl.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CodeGen/CGGPUBuiltin.cpp b/clang/lib/CodeGen/CGGPUBuiltin.cpp index 0def190c7..8f99f52ab 100644 --- a/clang/lib/CodeGen/CGGPUBuiltin.cpp +++ b/clang/lib/CodeGen/CGGPUBuiltin.cpp @@ -136,9 +136,9 @@ RValue EmitDevicePrintfCallExpr(const CallExpr *E, CodeGenFunction *CGF, llvm::Value *BufferPtr = r.first; llvm::Value *Fmt = Args[0].getRValue(*CGF).getScalarVal(); - // For OpenCL, the default addrspace of 'format' argument is LangAS::opencl_constant, - // however, the 'vprintf' requires it to be unqualified 'ptr' type. Do pointer cast if - // it's the case. + // For OpenCL, the default addrspace of 'format' argument is + // LangAS::opencl_constant, however, the 'vprintf' requires it to be + // unqualified 'ptr' type. Do pointer cast if it's the case. if (CGM.getContext().getLangOpts().OpenCL) Fmt = Builder.CreatePointerCast(Fmt, llvm::PointerType::getUnqual(Ctx)); `````````` </details> https://github.com/llvm/llvm-project/pull/140671 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits