Skip to content

Commit 81fd6d7

Browse files
authored
Merge pull request #13 from AliceO2Group/coding-guidelines-update
Coding Guidelines update of 2019-01-18
2 parents 4bfea50 + 0c33517 commit 81fd6d7

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.clang-format

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
#AccessModifierOffset: -2
1+
BasedOnStyle: Google
2+
AccessModifierOffset: -1
23
AlignEscapedNewlinesLeft: true
34
AlignTrailingComments: true
45
AllowAllParametersOfDeclarationOnNextLine: false
5-
#AllowShortFunctionsOnASingleLine: true
6+
AllowShortFunctionsOnASingleLine: true
67
AllowShortIfStatementsOnASingleLine: false
78
AllowShortLoopsOnASingleLine: false
89
#AlwaysBreakBeforeMultilineStrings: true
910
AlwaysBreakTemplateDeclarations: true
1011
BinPackParameters: true
1112
BreakBeforeBinaryOperators: false
12-
BreakBeforeBraces: Stroustrup
13+
BreakBeforeBraces: Linux
1314
BreakBeforeTernaryOperators: true
1415
BreakConstructorInitializersBeforeComma: false
15-
ColumnLimit: 120
16-
#CommentPragmas: '^ IWYU pragma:'
16+
ColumnLimit: 0
17+
CommentPragmas: '^ IWYU pragma:'
1718
ConstructorInitializerAllOnOneLineOrOnePerLine: true
1819
ConstructorInitializerIndentWidth: 2
1920
ContinuationIndentWidth: 2
@@ -24,24 +25,25 @@ IndentCaseLabels: true
2425
IndentFunctionDeclarationAfterType: true
2526
IndentWidth: 2
2627
# It is broken on windows. Breaks all #include "header.h"
27-
#Language: Cpp
28+
Language: Cpp
2829
MaxEmptyLinesToKeep: 1
30+
KeepEmptyLinesAtTheStartOfBlocks: true
2931
NamespaceIndentation: None
30-
#ObjCSpaceAfterProperty: false
32+
ObjCSpaceAfterProperty: false
3133
ObjCSpaceBeforeProtocolList: false
3234
PenaltyBreakBeforeFirstCallParameter: 1
3335
PenaltyBreakComment: 300
3436
PenaltyBreakFirstLessLess: 120
3537
PenaltyBreakString: 1000
3638
PenaltyExcessCharacter: 1000000
3739
PenaltyReturnTypeOnItsOwnLine: 200
38-
PointerBindsToType: true
40+
SortIncludes: false
3941
SpaceBeforeAssignmentOperators: true
40-
#SpaceBeforeParens: ControlStatements
42+
SpaceBeforeParens: ControlStatements
4143
SpaceInEmptyParentheses: false
4244
SpacesBeforeTrailingComments: 1
4345
SpacesInAngles: false
44-
#SpacesInContainerLiterals: true
46+
SpacesInContainerLiterals: true
4547
SpacesInCStyleCastParentheses: false
4648
SpacesInParentheses: false
4749
Standard: Cpp11

0 commit comments

Comments
 (0)