Typz marked 3 inline comments as done.
Typz added inline comments.

================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:1125
+  if (Current.is(TT_ConditionalExpr) && Current.is(tok::question) &&
+      ((Current.MustBreakBefore) ||
+       (Current.getNextNonComment() && 
Current.getNextNonComment()->MustBreakBefore)))
----------------
Maybe it would be better to go through here whenever this is wrapped (e.g. 
`Newline == true`) : but this implies akso introducing a penalty for "breaking" 
the nested conditional alignment. May ultimately be better, though probably 
somewhat more complex still.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D50078/new/

https://reviews.llvm.org/D50078



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to