C# treats object initializers as braced init blocks. Braced init blocks are no longer indented as continuations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/unittests/Format/FormatTestCSharp.cpp | ||
---|---|---|
544 | Please add test cases that demonstrate the +2 indent used when breaking inside C# object initializers. |
clang/unittests/Format/FormatTestCSharp.cpp | ||
---|---|---|
544 | Consider also adding an example with a trailing comma if the behavior there can be different than the one without a trailing comma. |
clang/unittests/Format/FormatTestCSharp.cpp | ||
---|---|---|
544 | The test at L 529 already covers 2 space indent and a trailing comma. |
Please add test cases that demonstrate the +2 indent used when breaking inside C# object initializers.