This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] C# formatting a class with inheritance followed by an attribute specifier assume its a braces initializer
ClosedPublic

Authored by MyDeveloperDay on Dec 20 2019, 7:25 AM.

Details

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)

Diff Detail

Event Timeline

MyDeveloperDay created this revision.Dec 20 2019, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2019, 7:25 AM
MyDeveloperDay edited the summary of this revision. (Show Details)Dec 20 2019, 7:26 AM
This revision is now accepted and ready to land.Dec 20 2019, 7:42 AM
This revision was automatically updated to reflect the committed changes.