================
@@ -1588,6 +1588,15 @@ TEST_F(FormatTestComments, ReflowsComments) {
" long */",
Style20);
+ auto Style80 = getLLVMStyleWithColumns(80);
+ Style80.PenaltyExcessCharacter = 10;
+ StringRef ClosingStars = "/**\n"
+ " * This test verifies the special code path. It "
----------------
frank-515 wrote:
Updated.
- Switched the test to `verifyFormat`.
- Moved it to the end of `ReflowsComments`.
I also tried to reduce it enough to reuse `Style20`, but I couldn't find a
smaller case that still reproduces this reliably. The current `ColumnLimit: 80`
+ `PenaltyExcessCharacter = 10` setup is the original reproducer and still
seems to be the most stable one for this bug.
https://github.com/llvm/llvm-project/pull/190209
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits