================
@@ -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 "
+ "currently exists for code coverage.\n"
+ " **/\n"
+ "void test() {}";
+ EXPECT_EQ(ClosingStars, format(ClosingStars, Style80));
----------------
HazardyKnusperkeks wrote:
Please use `verifyFormat`.
https://github.com/llvm/llvm-project/pull/190209
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits