[clang-format] C# formatting a class with inheritance followed by an attribute specif...
authormydeveloperday <mydeveloperday@gmail.com>
Fri, 20 Dec 2019 17:04:49 +0000 (17:04 +0000)
committermydeveloperday <mydeveloperday@gmail.com>
Fri, 20 Dec 2019 17:07:00 +0000 (17:07 +0000)
commit2f209ccfbe5e6b33088763b1e022ba876fb0f35c
tree701774652d86ead6f818aa6a53a2b240e18feb06
parent190b9110c23c0c742602d686e4a5bcff3d94fba1
[clang-format] C# formatting a class with inheritance followed by an attribute specifier assume its a braces initializer

Summary:
https://bugs.llvm.org/show_bug.cgi?id=44340

The rule that prevents `... {} [[....]]`  being treated as a braced initializer for C++ causes problems for C# with attributes, causing it to be incorrectly classified and then messing up the subsequent formatting. (see bug for details of formatting)

Reviewers: mitchell-stellar, klimek, sammccall

Reviewed By: mitchell-stellar

Subscribers: cfe-commits

Tags: #clang-format, #clang

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