[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 8 10:32:01 PDT 2025
================
@@ -4684,6 +4684,15 @@ struct FormatStyle {
/// \version 17
bool SpaceBeforeJsonColon;
+ /// If ``true``, a space is inserted immediately before the closing ``*/`` in
+ /// block comments that contain content.
+ /// \code
+ /// true: false:
+ /// /* comment */ vs. /* comment*/
----------------
mydeveloperday wrote:
Needs to have at least Space, NoSpace, Leave because the default of false is going to now remove spaces everywhere
https://github.com/llvm/llvm-project/pull/162105
More information about the cfe-commits
mailing list