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 430016 a13295273ef70e533334c02f3391c001cd21e1c5
parent 430015 aa3158628f1a1d974a310477469bdd9359c529fe
child 430017 81e046d67caeaa3d2549638b8a332f1674cf2171
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersandi, jya
bugs1399359
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
+