[PATCH] D67629: [clang-format] Fix C# breaking before function name when using Attributes

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 13:02:01 PDT 2019


MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: owenpan, klimek.
MyDeveloperDay added a project: clang-tools-extra.
Herald added a project: clang.

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




Repository:
  rC Clang

https://reviews.llvm.org/D67629

Files:
  clang/include/clang/Format/Format.h
  clang/lib/Format/ContinuationIndenter.cpp
  clang/lib/Format/Format.cpp
  clang/lib/Format/TokenAnnotator.cpp
  clang/unittests/Format/FormatTestCSharp.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67629.220375.patch
Type: text/x-patch
Size: 14014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190916/424bf017/attachment.bin>


More information about the cfe-commits mailing list