Skip to content

Commit 975f0d3

Browse files
alibuildawegrzyn
authored andcommitted
Align Clang Format to upstream (#110)
1 parent ae5e04c commit 975f0d3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.clang-format

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
BasedOnStyle: Google
2+
AccessModifierOffset: -1
3+
AlignEscapedNewlinesLeft: true
4+
AlignTrailingComments: true
5+
AllowAllParametersOfDeclarationOnNextLine: false
6+
AllowShortFunctionsOnASingleLine: true
7+
AllowShortIfStatementsOnASingleLine: false
8+
AllowShortLoopsOnASingleLine: false
9+
#AlwaysBreakBeforeMultilineStrings: true
10+
AlwaysBreakTemplateDeclarations: true
11+
BinPackParameters: true
12+
BreakBeforeBinaryOperators: false
13+
BreakBeforeBraces: Linux
14+
BreakBeforeTernaryOperators: true
15+
BreakConstructorInitializersBeforeComma: false
16+
ColumnLimit: 0
17+
CommentPragmas: '^ IWYU pragma:'
18+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
19+
ConstructorInitializerIndentWidth: 2
20+
ContinuationIndentWidth: 2
21+
Cpp11BracedListStyle: false
22+
DerivePointerBinding: false
23+
ExperimentalAutoDetectBinPacking: false
24+
IndentCaseLabels: true
25+
IndentFunctionDeclarationAfterType: true
26+
IndentWidth: 2
27+
# It is broken on windows. Breaks all #include "header.h"
28+
Language: Cpp
29+
MaxEmptyLinesToKeep: 1
30+
KeepEmptyLinesAtTheStartOfBlocks: true
31+
NamespaceIndentation: None
32+
ObjCSpaceAfterProperty: false
33+
ObjCSpaceBeforeProtocolList: false
34+
PenaltyBreakBeforeFirstCallParameter: 1
35+
PenaltyBreakComment: 300
36+
PenaltyBreakFirstLessLess: 120
37+
PenaltyBreakString: 1000
38+
PenaltyExcessCharacter: 1000000
39+
PenaltyReturnTypeOnItsOwnLine: 200
40+
SortIncludes: false
41+
SpaceBeforeAssignmentOperators: true
42+
SpaceBeforeParens: ControlStatements
43+
SpaceInEmptyParentheses: false
44+
SpacesBeforeTrailingComments: 1
45+
SpacesInAngles: false
46+
SpacesInContainerLiterals: true
47+
SpacesInCStyleCastParentheses: false
48+
SpacesInParentheses: false
49+
Standard: Cpp11
50+
TabWidth: 2
51+
UseTab: Never

0 commit comments

Comments
 (0)