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 35a003c2b21082f3c47c8b01d9d1955af5ab098e f3cfe4cbc1053162b825cc144a5f5c0f73a40b77 -- clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaStmtAttr.cpp clang/lib/Sema/TreeTransform.h `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp index a7f6ba4d7a..e6a4d3e63e 100644 --- a/clang/lib/Sema/SemaStmtAttr.cpp +++ b/clang/lib/Sema/SemaStmtAttr.cpp @@ -363,8 +363,7 @@ static Attr *handleCodeAlignAttr(Sema &S, Stmt *St, const ParsedAttr &A) { // Diagnose non-identical duplicates as a 'conflicting' loop attributes // and suppress duplicate errors in cases where the two match. template <typename LoopAttrT> -static void CheckForDuplicateLoopAttrs(Sema &S, - ArrayRef<const Attr *> Attrs) { +static void CheckForDuplicateLoopAttrs(Sema &S, ArrayRef<const Attr *> Attrs) { auto FindFunc = [](const Attr *A) { return isa<const LoopAttrT>(A); }; const auto *FirstItr = std::find_if(Attrs.begin(), Attrs.end(), FindFunc); @@ -383,8 +382,8 @@ static void CheckForDuplicateLoopAttrs(Sema &S, while (Attrs.end() != (LastFoundItr = std::find_if(LastFoundItr + 1, Attrs.end(), FindFunc))) { - const auto *CASA = dyn_cast<ConstantExpr>( - cast<LoopAttrT>(*LastFoundItr)->getAlignment()); + const auto *CASA = + dyn_cast<ConstantExpr>(cast<LoopAttrT>(*LastFoundItr)->getAlignment()); // If the value is dependent, we can not test anything. if (!CASA) return; `````````` </details> https://github.com/llvm/llvm-project/pull/75657 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits