New clang-format style based on the Google style. (#1264)
authorMathias Preiner <mathias.preiner@gmail.com>
Tue, 24 Oct 2017 17:51:59 +0000 (10:51 -0700)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2017 17:51:59 +0000 (10:51 -0700)
.clang-format

index 4b3f13fa55e123778ee7fcef26752ca6fbe5ba89..485d65f21af66b00277dbb3dd39cba6e5a9d21eb 100644 (file)
@@ -1,5 +1,22 @@
 ---
 Language:        Cpp
 BasedOnStyle:  Google
+AllowShortCaseLabelsOnASingleLine: true
+BinPackArguments: false
+BinPackParameters: false
+BreakBeforeBinaryOperators: NonAssignment
+BraceWrapping:
+  AfterClass: true
+  AfterControlStatement: true
+  AfterEnum: true
+  AfterFunction: true
+  AfterStruct: true
+  AfterUnion: true
+  BeforeCatch: true
+  BeforeElse: true
+  SplitEmptyFunction: false
+  SplitEmptyNamespace: false
+  SplitEmptyRecord: false
+BreakBeforeBraces: Custom
 ...