This is an archive of the discontinued LLVM Phabricator instance.

[clang-format [PR45791] BeforeLambdaBody is confused by comment inside lambda
ClosedPublic

Authored by MyDeveloperDay on May 4 2020, 3:53 AM.

Details

Summary

https://bugs.llvm.org/show_bug.cgi?id=45791

Lambda with line comment is incorrectly formatted

auto k = []() // comment
{ return; };
`
auto k = []() // comment { return; };

Diff Detail

Event Timeline

MyDeveloperDay created this revision.May 4 2020, 3:53 AM
Wawha accepted this revision.May 4 2020, 10:44 AM

Thanks for the patch !

This revision is now accepted and ready to land.May 4 2020, 10:44 AM
This revision was automatically updated to reflect the committed changes.