================
@@ -5590,6 +5590,30 @@ struct FormatStyle {
/// \version 3.4
SpacesInAnglesStyle SpacesInAngles;
+ /// Styles for controlling spacing after ``/*`` and before ``*/`` in block
+ /// comments.
+ enum SpacesInCommentsStyle : int8_t {
+ /// Remove spaces after ``/*`` and before ``*/``.
+ /// \code
+ /// /*comment*/
+ /// \endcode
+ SICS_Never,
+ /// Add spaces after ``/*`` and before ``*/``.
+ /// \code
+ /// /* comment */
+ /// \endcode
+ SICS_Always,
+ /// Leave existing spaces unchanged.
+ SICS_Leave
+ };
+
+ /// The SpacesInCommentsStyle to use for single-line ordinary block comments.
+ /// Documentation comments such as ``/** ... */`` and ``/*! ... */`` and
+ /// parameter comments ending with ``=`` before the closing ``*/`` are left
+ /// unchanged.
+ /// \version 23
+ SpacesInCommentsStyle SpacesInComments;
----------------
HazardyKnusperkeks wrote:
It should be called `SpacesInBlockComments`
https://github.com/llvm/llvm-project/pull/204727
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits