[clang] [clang-format] Correctly compute SplitPenalty of TrailingReturnArrow (PR #105613)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 22 00:38:14 PDT 2024


================
@@ -4050,7 +4050,7 @@ void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const {
                              ChildSize + Current->SpacesRequiredBefore;
     }
 
-    if (Current->is(TT_CtorInitializerColon))
+    if (Current->isOneOf(TT_CtorInitializerColon, TT_LambdaLSquare))
----------------
mydeveloperday wrote:

is this bit tested or unrelated?

https://github.com/llvm/llvm-project/pull/105613


More information about the cfe-commits mailing list