This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] [PR43333] Fix C# breaking before function name when using Attributes
ClosedPublic

Authored by MyDeveloperDay on Sep 16 2019, 1:01 PM.

Details

Summary

This is a fix for https://bugs.llvm.org/show_bug.cgi?id=43333

This comes with 3 main parts

  • C# attributes cause function names on a new line even when AlwaysBreakAfterReturnType is set to None
  • Add AlwaysBreakAfterReturnType to None by default in the Microsoft style,
  • C# unit tests are not using Microsoft style (which we created to define the default C# style to match a vanilla C# project).

Diff Detail

Repository
rL LLVM

Event Timeline

MyDeveloperDay created this revision.Sep 16 2019, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2019, 1:01 PM
MyDeveloperDay retitled this revision from [clang-format] Fix C# breaking before function name when using Attributes to [clang-format] [PR43333] Fix C# breaking before function name when using Attributes.Sep 16 2019, 1:06 PM
MyDeveloperDay added a reviewer: russellmcc.
MyDeveloperDay added a project: Restricted Project.Sep 25 2019, 1:17 AM
This revision is now accepted and ready to land.Oct 3 2019, 12:02 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2019, 12:56 AM