https://bugs.llvm.org/show_bug.cgi?id=45791
Lambda with line comment is incorrectly formatted
auto k = []() // comment { return; }; `
auto k = []() // comment { return; };
Paths
| Differential D79320
[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 TimelineThis revision is now accepted and ready to land.May 4 2020, 10:44 AM Closed by commit rG5b8ffb414200: [clang-format] [PR45791] BeforeLambdaBody is confused by comment inside lambda (authored by MyDeveloperDay). · Explain WhyMay 7 2020, 11:57 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 261776 clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTest.cpp
|