This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGc89d2fd596ce: [clang-format][NFC] Format lambda in conditional (authored by HazardyKnusperkeks). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138356/new/ https://reviews.llvm.org/D138356 Files: clang/lib/Format/TokenAnnotator.cpp Index: clang/lib/Format/TokenAnnotator.cpp =================================================================== --- clang/lib/Format/TokenAnnotator.cpp +++ clang/lib/Format/TokenAnnotator.cpp @@ -2583,7 +2583,7 @@ (Start->Previous && Start->Previous->isOneOf(TT_RequiresClause, TT_RequiresClauseInARequiresExpression)) - ? [this](){ + ? [this]() { auto Ret = Current ? Current : Line.Last; while (!Ret->ClosesRequiresClause && Ret->Previous) Ret = Ret->Previous;
Index: clang/lib/Format/TokenAnnotator.cpp =================================================================== --- clang/lib/Format/TokenAnnotator.cpp +++ clang/lib/Format/TokenAnnotator.cpp @@ -2583,7 +2583,7 @@ (Start->Previous && Start->Previous->isOneOf(TT_RequiresClause, TT_RequiresClauseInARequiresExpression)) - ? [this](){ + ? [this]() { auto Ret = Current ? Current : Line.Last; while (!Ret->ClosesRequiresClause && Ret->Previous) Ret = Ret->Previous;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits