================
@@ -5537,6 +5537,11 @@ bool TokenAnnotator::spaceRequiredBefore(const
AnnotatedLine &Line,
Left.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow)) {
return true;
}
+ if (Left.is(tok::comma) && Left.is(TT_CtorInitializerComma) &&
+ Right.isNot(TT_OverloadedOperatorLParen) &&
+ (Left.Children.empty() || !Left.MacroParent)) {
+ return Style.SpaceAfterCtorInitializerComma;
+ }
----------------
HazardyKnusperkeks wrote:
```suggestion
if (Left.is(TT_CtorInitializerComma))
return Style.SpaceAfterCtorInitializerComma;
```
Why do you think you need all those checks?
https://github.com/llvm/llvm-project/pull/190657
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits