[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
Fri Oct 24 23:20:00 PDT 2025


================
@@ -315,6 +315,19 @@ class AnnotatedLine;
 
 /// A wrapper around a \c Token storing information about the
 /// whitespace characters preceding it.
+
+// Describes the kind of a block comment.
+enum class CommentKind {
+  // A plain comment, i.e. /* ... */.
+  Plain,
+  // A comment that starts with /*! or /**.
+  Docstring,
+  // A comment that looks like a parameter, e.g. /*in*/.
+  Parameter,
+  // A comment that is a sentinel, e.g. /*FALLTHROUGH*/.
+  Sentinel,
----------------
HazardyKnusperkeks wrote:

I don't know what to think about this. Especially since it is undocumented.

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


More information about the cfe-commits mailing list