[clang] [llvm] clang-format reflow comments disable star: Fixes #58710 (PR #167146)
Björn Schäpers via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 9 14:28:05 PST 2025
================
@@ -4250,6 +4250,19 @@ struct FormatStyle {
/// \version 3.8
ReflowCommentsStyle ReflowComments;
+ /// If reflow comments is enabled, dont include * in the formatted block comment.
+ /// \code
+ /// // veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
+ /// // information
+ /// /* second veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
+ /// information */
+ /// /* third veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
+ /// information and a misaligned second line */
+ /// \endcode
+
+ /// \version 22
+ bool ReflowCommentsNoStar;
----------------
HazardyKnusperkeks wrote:
Rework `ReflowComments` to a struct and put the option there.
https://github.com/llvm/llvm-project/pull/167146
More information about the llvm-commits
mailing list