[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 27 12:00:15 PDT 2025
================
@@ -920,12 +920,15 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
// align the commas with the opening paren.
if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign &&
!CurrentState.IsCSharpGenericTypeConstraint && Previous.opensScope() &&
- Previous.isNot(TT_ObjCMethodExpr) && Previous.isNot(TT_RequiresClause) &&
- Previous.isNot(TT_TableGenDAGArgOpener) &&
- Previous.isNot(TT_TableGenDAGArgOpenerToBreak) &&
+ Previous.isNotOneOf(TT_ObjCMethodExpr, TT_RequiresClause,
----------------
owenca wrote:
Can we do this in an NFC patch to replace all `!isOneOf` with `isNotOneOf`?
https://github.com/llvm/llvm-project/pull/71672
More information about the cfe-commits
mailing list