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

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 13:09:22 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 53498 tests passed
* 1068 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang-Unit
<details>
<summary>Clang-Unit.Format/_/FormatTests_exe/FormatTest/OptimizeBreakPenaltyVsExcess</summary>

```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Format\.\FormatTests.exe --gtest_filter=FormatTest.OptimizeBreakPenaltyVsExcess
--
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestBase.h:90
Expected equality of these values:
  ExpectedCode
    Which is: "/*\n *\t9012345\n * /8901\n */"
  FormattedCode
    Which is: "/*\n *\t9012345\n* /8901\n */"
With diff:
@@ -1,4 +1,4 @@
 /*
  *\t9012345
- * /8901
+* /8901
  */

Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTest.cpp(19738): /*
 *	9012345 /8901
 */

C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestBase.h:90
Expected equality of these values:
  ExpectedCode
    Which is: "/*\n *345678\n *\t/8901\n */"
  FormattedCode
    Which is: "/*\n *345678\n* /8901\n */"
With diff:
@@ -1,4 +1,4 @@
 /*
  *345678
- *\t/8901
+* /8901
  */

Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTest.cpp(19746): /*
 *345678	/8901
 */


```
</details>
<details>
<summary>Clang-Unit.Format/_/FormatTests_exe/FormatTestComments/BlockComments</summary>

```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Format\.\FormatTests.exe --gtest_filter=FormatTestComments.BlockComments
--
unknown file
SEH exception with code 0x3221225501 thrown in the test body.
Stack trace:

Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestComments.cpp(2445): /*
**
* aaaaaa aaaaaa
*/


```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list