[clang-tools-extra] [clang-tidy] Avoid token merging in redundant-parentheses fix-its (PR #202365)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 08:45:36 PDT 2026


================
@@ -34,6 +35,23 @@ AST_MATCHER(ParenExpr, isInMacro) {
 
 } // namespace
 
+static FixItHint createSpacedRemoval(SourceLocation Loc,
----------------
zeyi2 wrote:

TBH, this is not an ideal solution. The existing API would require linking clang-tidy against `clangEdit`, adding an extra dependency for a fairly small fix. I would prefer to avoid that here, but I'm open to suggestions.


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


More information about the cfe-commits mailing list