HomePhabricator

[clang-format] Improved parser for C# properties

Authored by Jonathan Coe <jbcoe@google.com> on Apr 28 2020, 6:11 AM.

Description

[clang-format] Improved parser for C# properties

Summary:
Added some examples of properties from Microsoft documentation as test cases.

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties

Configuration support will be added in a follow up patch to address whether automatic properties are formatted as

Type MyType { get; set }

or

Type MyType
{ get; set }

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang-format, #clang

Differential Revision: https://reviews.llvm.org/D78915

Event Timeline

Jonathan Coe <jbcoe@google.com> committed rG44ad58b9915d: [clang-format] Improved parser for C# properties (authored by Jonathan Coe <jbcoe@google.com>).Apr 28 2020, 6:11 AM