[niepce: 22/29] clang-format: update to standard
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce: 22/29] clang-format: update to standard
- Date: Fri, 22 Sep 2017 00:43:34 +0000 (UTC)
commit 072f196d9ad0afa6ae6eea19474ba506ee72bb14
Author: Hubert Figuière <hub figuiere net>
Date: Wed Sep 6 22:33:07 2017 -0400
clang-format: update to standard
.clang-format | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/.clang-format b/.clang-format
index 6e178a8..2d43b7b 100644
--- a/.clang-format
+++ b/.clang-format
@@ -10,14 +10,28 @@ AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
+AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: true
AlwaysBreakBeforeMultilineStrings: false
+BraceWrapping: {
+ AfterClass: true,
+ AfterControlStatement: false,
+ AfterEnum: false,
+ AfterFunction: true,
+ AfterNamespace: false,
+ AfterStruct: false,
+ AfterUnion: false,
+ BeforeCatch: false,
+ IndentBraces: false,
+}
BreakBeforeBinaryOperators: false
+BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
BinPackParameters: true
ColumnLimit: 80
ConstructorInitializerAllOnOneLineOrOnePerLine: true
+Cpp11BracedListStyle: true
DerivePointerAlignment: true
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
@@ -33,15 +47,13 @@ PenaltyBreakComment: 300
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
PenaltyExcessCharacter: 1000000
-PenaltyReturnTypeOnItsOwnLine: 200
+PenaltyReturnTypeOnItsOwnLine: 100
PointerAlignment: Left
SpacesBeforeTrailingComments: 1
-Cpp11BracedListStyle: false
Standard: Cpp11
IndentWidth: 4
-TabWidth: 8
+TabWidth: 4
UseTab: Never
-BreakBeforeBraces: Stroustrup
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]