[clang-format] Handle C# property accessors when parsing lines
authorJonathan Coe <jbcoe@google.com>
Thu, 23 Apr 2020 10:38:52 +0000 (11:38 +0100)
committerJonathan Coe <jbcoe@google.com>
Thu, 23 Apr 2020 12:25:10 +0000 (13:25 +0100)
commit2f9fc8d9718fb19c04e169f7ba7ae26ea6a05085
treee5a117fa908de936020078d32d3e4c7698ecc68d
parentc9e6b7010c6998b6df50ff376425d1d4e4937bea
[clang-format] Handle C# property accessors when parsing lines

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).

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang-format, #clang

Differential Revision: https://reviews.llvm.org/D78642
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTestCSharp.cpp