[clang] c89d2fd - [clang-format][NFC] Format lambda in conditional
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 21 04:24:38 PST 2022
Author: Björn Schäpers
Date: 2022-11-21T13:24:18+01:00
New Revision: c89d2fd596cec8cf3a8100c504f045b9727fa98a
URL: https://github.com/llvm/llvm-project/commit/c89d2fd596cec8cf3a8100c504f045b9727fa98a
DIFF: https://github.com/llvm/llvm-project/commit/c89d2fd596cec8cf3a8100c504f045b9727fa98a.diff
LOG: [clang-format][NFC] Format lambda in conditional
This sort of amends cdbe296853b1b3fc6415236f05770360e23f0d39
Differential Revision: https://reviews.llvm.org/D138356
Added:
Modified:
clang/lib/Format/TokenAnnotator.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 87e70c367fde..21152b8c20e1 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -2583,7 +2583,7 @@ class ExpressionParser {
(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;
More information about the cfe-commits
mailing list