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,h -- clang/test/CIR/CodeGenOpenACC/compute-copy.c clang/lib/CIR/CodeGen/CIRGenOpenACCClause.h clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp clang/lib/CIR/CodeGen/CIRGenStmtOpenACCLoop.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CIR/CodeGen/CIRGenOpenACCClause.h b/clang/lib/CIR/CodeGen/CIRGenOpenACCClause.h index dc4cab805..053b16623 100644 --- a/clang/lib/CIR/CodeGen/CIRGenOpenACCClause.h +++ b/clang/lib/CIR/CodeGen/CIRGenOpenACCClause.h @@ -70,7 +70,7 @@ inline DataOperandInfo getDataOperandInfo(CIRGen::CIRGenFunction &cgf, // TODO: OpenACC: Cache was different enough as to need a separate // `ActOnCacheVar`, so we are going to need to do some investigations here // when it comes to implement this for cache. - if(dk != OpenACCDirectiveKind::Cache) { + if (dk != OpenACCDirectiveKind::Cache) { cgf.cgm.errorNYI(e->getSourceRange(), "OpenACC data operand for 'cache' directive"); return {cgf.cgm.getLoc(e->getBeginLoc()), {}, {}}; @@ -98,7 +98,7 @@ inline DataOperandInfo getDataOperandInfo(CIRGen::CIRGenFunction &cgf, // subscript, array section, member expr, or DRE to a var decl (or the former // 3 wrapping a var-decl), so we should be able to assume this is right. const auto *dre = cast<DeclRefExpr>(curVarExpr); - const auto *vd = cast<VarDecl>(dre->getFoundDecl()->getCanonicalDecl()); + const auto *vd = cast<VarDecl>(dre->getFoundDecl()->getCanonicalDecl()); return {exprLoc, cgf.emitDeclRefLValue(dre).getPointer(), vd->getName()}; } } // namespace `````````` </details> https://github.com/llvm/llvm-project/pull/140304 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits