[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 05:29:55 PST 2025


================
@@ -332,6 +332,429 @@ TEST_F(FormatTestComments, UnderstandsSingleLineComments) {
   verifyNoCrash(StringRef("/*\\\0\n/", 6));
 }
 
+TEST_F(FormatTestComments, InsertsSpaceAfterOpeningBlockComment) {
----------------
Men-cotton wrote:

I've reduced the test cases to two tests: `SpaceInBlockComments` and `SpaceInBlockCommentsParamOverrides`.
I haven't added the case where comments are reflown. I'll tackle this later.

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


More information about the cfe-commits mailing list