]> granicus.if.org Git - clang/commit
[clang-format] [PR43333] Fix C# breaking before function name when using Attributes
authorPaul Hoad <mydeveloperday@gmail.com>
Fri, 4 Oct 2019 07:56:49 +0000 (07:56 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Fri, 4 Oct 2019 07:56:49 +0000 (07:56 +0000)
commit0884008c1c877510735e7441f2a08d8c9c52cae0
treeffbd9c39d9d6a6674346593ad3aa16b3e3b3090b
parent042225996c0f8e498308ec170acb09afcfdf858a
[clang-format] [PR43333] Fix C# breaking before function name when using Attributes

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).

Reviewers: owenpan, klimek, russellmcc, mitchell-stellar

Reviewed By: mitchell-stellar

Subscribers: cfe-commits

Tags: #clang-tools-extra, #clang, #clang-format

Differential Revision: https://reviews.llvm.org/D67629

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373707 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/ContinuationIndenter.cpp
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestCSharp.cpp