MyDeveloperDay accepted this revision. MyDeveloperDay added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang/lib/Format/ContinuationIndenter.cpp:1294-1296 + Previous->isOneOf(tok::l_paren, tok::comma, tok::colon, TT_BinaryOperator, + TT_ConditionalExpr) && !Previous->isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { ---------------- HazardyKnusperkeks wrote: > curdeius wrote: > > Unrelated to your change, it only shed light on this: > > This condition looks strange to me. How can `Previous` be at the same time > > two different `TokenType`s (?), for instance, both `TT_BinaryOperator` and > > `TT_DictLiteral`? > > > > Shouldn't it be this? > Yeah, I will update it. This is in my view one of the reasons why I personally like it when we comment the condition with an example and don't have these huge compound expressions. Often they are covering corner cases. (we should call them out) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115069/new/ https://reviews.llvm.org/D115069 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits