[clang] Add configuration option PenaltyBreakBeforeMemberAccess (PR #118409)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 27 07:19:24 PST 2025
================
@@ -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;
----------------
gedare wrote:
Yes, that makes sense. Will do.
https://github.com/llvm/llvm-project/pull/118409
More information about the cfe-commits
mailing list