[clang] [clang-format] Add an option for editing enum trailing commas (PR #133576)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 30 02:59:34 PDT 2025
================
@@ -2214,6 +2214,21 @@ FormatStyle::GetLanguageStyle(FormatStyle::LanguageKind Language) const {
namespace {
+void replaceToken(const FormatToken &Token, FormatToken *Next,
+ const SourceManager &SourceMgr, tooling::Replacements &Result,
+ const char *Text = "") {
----------------
owenca wrote:
I was going to use `StringRef` but instead settled on `const char *` because of #131299. I can switch to `StringRef` if you still think it's better.
https://github.com/llvm/llvm-project/pull/133576
More information about the cfe-commits
mailing list