================ @@ -4316,7 +4316,7 @@ unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line, // aaaaaaa // .aaaaaaaaa.bbbbbbbb(cccccccc); return !Right.NextOperator || !Right.NextOperator->Previous->closesScope() - ? 150 + ? Style.PenaltyBreakBeforeMemberAccess : 35; ---------------- owenca wrote:
We probably want this instead: ```cpp const auto Penalty = Style.PenaltyBreakBeforeMemberAccess; return Right.NextOperator && Right.NextOperator->Previous->closesScope() ? std::min(Penalty, 35u) : Penalty; ``` https://github.com/llvm/llvm-project/pull/118409 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits