================ @@ -22365,6 +22365,19 @@ TEST_F(FormatTest, BreakPenaltyAfterForLoopLParen) { Style); } +TEST_F(FormatTest, BreakPenaltyBeforeMemberAccess) { + FormatStyle Style = getLLVMStyle(); + Style.ColumnLimit = 8; + Style.PenaltyExcessCharacter = 15; + verifyFormat("foo->bar\n" + " .b(a);", + Style); + Style.PenaltyBreakBeforeMemberAccess = 200; + verifyFormat("foo->bar.b(\n" + " a);", ---------------- gedare wrote:
I added this. I kept my original test case for coverage of the `->`. 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