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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 28 15:02:05 PDT 2025


================
@@ -61,6 +62,10 @@ void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines,
                            Spaces, StartOfTokenColumn, Newlines, "", "",
                            IsAligned, InPPDirective && !Tok.IsFirst,
                            /*IsInsideToken=*/false));
+  if (Style.ReflowComments == FormatStyle::RCS_Never) {
----------------
HazardyKnusperkeks wrote:

This doesn't seem right. No touchy comments.

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


More information about the cfe-commits mailing list