[all-commits] [llvm/llvm-project] 44ad58: [clang-format] Improved parser for C# properties

Jonathan B Coe via All-commits all-commits at lists.llvm.org
Tue Apr 28 06:13:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 44ad58b9915d29eb48be4f89368be6d30d174825
      https://github.com/llvm/llvm-project/commit/44ad58b9915d29eb48be4f89368be6d30d174825
  Author: Jonathan Coe <jbcoe at google.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTestCSharp.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list