Treat C# object initializers as braced lists.
Allow lambdas inside C# braced lists.
Paths
| Differential D75473
[clang-format] parse C# object initialisers ClosedPublic Authored by jbcoe on Mar 2 2020, 10:56 AM.
Details
Summary Treat C# object initializers as braced lists. Allow lambdas inside C# braced lists.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Mar 4 2020, 4:04 AM Closed by commit rG7d2fdd3f6639: [clang-format] parse C# object initialisers (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyMar 4 2020, 4:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 247690 clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|
I don't understand why this is needed, and removing this if does not cause any tests to fail.
Please add a test case that will fail if we remove this if, or consider removing otherwise.