djasper added inline comments.

================
Comment at: lib/Format/ContinuationIndenter.cpp:852
+  bool CanBreakProtrudingToken =
+      State.Stack.empty() || (!State.Stack.back().NoLineBreak &&
+                              !State.Stack.back().NoLineBreakInOperand);
----------------
I think we assume here and in many other place that the stack is never empty. 
E.g. there is no similar check in l.847 above. So, I'd remove this here, too. 
In the long run, we probably want to have a class properly wrapping the Stack.


https://reviews.llvm.org/D30575



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

Reply via email to