[clang] [clang-format] Fix extraneous space in block comments ending with **/ (PR #190209)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 12:56:07 PDT 2026


================
@@ -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 "
----------------
HazardyKnusperkeks wrote:

Any particular reason you put the test here, not at the end? I think you could reuse the `Style20` and just set `PenaltyExcessCharacter`.

https://github.com/llvm/llvm-project/pull/190209


More information about the cfe-commits mailing list