Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 13 Sep 2017 08:39:43 +0200
changeset 663821 a13295273ef70e533334c02f3391c001cd21e1c5
parent 663820 aa3158628f1a1d974a310477469bdd9359c529fe
child 663822 81e046d67caeaa3d2549638b8a332f1674cf2171
push id79536
push userbmo:rchien@mozilla.com
push dateWed, 13 Sep 2017 12:07:56 +0000
reviewersandi, jya
bugs1399359
milestone57.0a1
Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya MozReview-Commit-ID: 9tRSMN89iuM
.clang-format
--- a/.clang-format
+++ b/.clang-format
@@ -30,8 +30,18 @@ SortIncludes: false
 
 # All of the following items are default
 # in the Mozila coding style from clang format 4.0
 AlwaysBreakAfterReturnType: TopLevel
 BinPackArguments: false
 BinPackParameters: false
 SpaceAfterTemplateKeyword: false
 ReflowComments: false
+
+
+BreakBeforeBraces: Custom
+BraceWrapping:
+  AfterEnum: true
+  AfterStruct: true
+  AfterFunction: true
+  AfterClass: true
+  SplitEmptyFunction: true
+