Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Incorrect formatting of lambdas. #15050

Closed Quuxplusone closed 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR15050
Status RESOLVED INVALID
Importance P enhancement
Reported by Michael Spencer (bigcheesegs@gmail.com)
Reported on 2013-01-23 04:23:48 -0800
Last modified on 2013-01-23 05:29:36 -0800
Version trunk
Hardware All All
CC djasper@google.com, klimek@google.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Input:
void adena() {
  std::copy_if(some_container.begin(), some_container.end(), [](const some_type &A, const some_type &B){return adsfasdfasfdasdfasfdasefaefasefasdfasdf(A, B);});
}

Output:
void adena() {
  std::copy_if(some_container.begin(), some_container.end(),
               [](const some_type &A, const some_type &B) {
    return adsfasdfasfdasdfasfdasefaefasefasdfasdf(A, B);
  });
}

Expected:
void adena() {
  std::copy_if(some_container.begin(), some_container.end(),
  [](const some_type &A, const some_type &B) {
    return adsfasdfasfdasdfasfdasefaefasefasdfasdf(A, B);
  });
}
Quuxplusone commented 11 years ago

I've been convinced that the current behavior is correct.