[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
================
@@ -4821,7 +4822,16 @@ bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line,
}
if (Left.is(TT_BlockComment)) {
// No whitespace in x(/*foo=*/1), except for JavaScript.
- return Style.isJavaScript() || !Left.TokenText.ends_with("=*/");
+ const StringRef Trimmed = Left.TokenText.rtrim(" \t");
----------------
HazardyKnusperkeks wrote:
With my previous comment, I think this should stay the way it was before.
https://github.com/llvm/llvm-project/pull/162105
More information about the cfe-commits
mailing list