Improve C# { get; set; } = default; formatting by handling it in the UnwrappedLineParser rather than trying to merge lines later.
Remove old logic to merge lines.
Update tests as formatting output has changed (as intended).
Paths
| Differential D78642
[clang-format] Handle C# property accessors when parsing lines ClosedPublic Authored by jbcoe on Apr 22 2020, 8:03 AM.
Details Summary Improve C# { get; set; } = default; formatting by handling it in the UnwrappedLineParser rather than trying to merge lines later. Remove old logic to merge lines. Update tests as formatting output has changed (as intended).
Diff Detail
Unit TestsFailed Event TimelineThis revision is now accepted and ready to land.Apr 23 2020, 3:13 AM Closed by commit rG2f9fc8d9718f: [clang-format] Handle C# property accessors when parsing lines (authored by Jonathan Coe <jbcoe@google.com>). · Explain WhyApr 23 2020, 5:54 AM This revision was automatically updated to reflect the committed changes.
jbcoe added inline comments.
Revision Contents
Diff 259293 clang/lib/Format/UnwrappedLineFormatter.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestCSharp.cpp
|
previously set and get would break based on the setting of AfterFunction correct? now I assume it doesn't?