[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
Tue Oct 28 15:02:04 PDT 2025
================
@@ -18,11 +18,66 @@
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Format/Format.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Regex.h"
namespace clang {
namespace format {
+namespace {
+
+CommentKind classifyBlockComment(StringRef Text) {
+ if (!Text.starts_with("/*") || !Text.ends_with("*/"))
----------------
HazardyKnusperkeks wrote:
Can this ever be true?
https://github.com/llvm/llvm-project/pull/162105
More information about the cfe-commits
mailing list