[clang-format] Improve handling of C# attributes
authorJonathan Coe <jbcoe@google.com>
Mon, 10 Feb 2020 08:17:42 +0000 (08:17 +0000)
committerJonathan Coe <jbcoe@google.com>
Tue, 11 Feb 2020 12:00:17 +0000 (12:00 +0000)
commitb46f925d68d480246e1447f26459bdc894631a88
tree991537f2efaaa62cb33dcc5f4e59a61ad4627c91
parentcc9b4fb6c9d2c028c8eebdc9088494d31a56731a
[clang-format] Improve handling of C# attributes

Summary:
C# attributes can appear on classes and methods, in which case they should go on their own line, or on method parameters in which case
they should be left inline.

Reviewers: krasimir, MyDeveloperDay

Reviewed By: MyDeveloperDay

Subscribers: klimek

Tags: #clang-format

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