About the UnwrappedLine concept:

  > changing the formatting within an unwrapped line does not affect any other 
unwrapped lines

  This seems logical to me.  From your patch I see how it works in case where 
we have declarations, statements and expression statements.  But what if we 
have statements within an expression (for example, a body within the lambda), 
how is this idea going to work in practice?  Could you please show unwrapped 
lines for the following example (split into multiple lines just for 
readability):

  for_each(begin(l), end(l),
  [&even_counter] (int n) {
  if (n%2) cout << "odd" << endl; else cout << "even" << endl;
  });

http://llvm-reviews.chandlerc.com/D80
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to