[clang-format] C# property formatting can be controlled by config options
authorJonathan Coe <jbcoe@google.com>
Fri, 15 May 2020 12:55:48 +0000 (13:55 +0100)
committerJonathan Coe <jbcoe@google.com>
Fri, 15 May 2020 13:08:40 +0000 (14:08 +0100)
commit8fa743ab82027da443bac050e86b70bcdb78cbee
tree48eb9081731b23572f3af91f168d19c3ccf36180
parent0ef62fc25d3f2017551c24f4c65d001e003e88ab
[clang-format] C# property formatting can be controlled by config options

Summary:
Allow brace wrapping in C# property accessors to be controlled by configuration options.

Add new tests and revert old test results for Microsoft style to their previous state (as intended).

`FormatStyle.BraceWrapping.AfterFunction = true;` will change automatic property formatting from

```
Type MyType { get; set }
```

to

```
Type MyType
{ get; set }
```

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir, MyDeveloperDay

Subscribers: cfe-commits

Tags: #clang-format, #clang

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