[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
Sun Nov 23 02:19:54 PST 2025
================
@@ -403,6 +412,17 @@ struct FormatToken {
/// \c true if this token ends a group of C++ attributes.
unsigned EndsCppAttributeGroup : 1;
+private:
+ /// Kind of block comment.
+ CommentKind BlockCommentKind = CommentKind::Plain;
+
+public:
+ CommentKind getBlockCommentKind() const { return BlockCommentKind; }
+ void setBlockCommentKind(CommentKind Kind) {
+ BlockCommentKind = Kind;
+ assert(getBlockCommentKind() == Kind && "CommentKind overflow!");
----------------
HazardyKnusperkeks wrote:
Since you don't use just a few bit, but the full enum, you don't need that assert.
https://github.com/llvm/llvm-project/pull/162105
More information about the cfe-commits
mailing list