Skip to content

Commit de718b9

Browse files
Added .clang-format
1 parent 16141d1 commit de718b9

File tree

4 files changed

+515
-499
lines changed

4 files changed

+515
-499
lines changed

.clang-format

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
AccessModifierOffset: -1
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveAssignments: false
5+
AlignConsecutiveDeclarations: false
6+
AlignEscapedNewlines: Left
7+
# AlingOperands: true # Unsupported
8+
AlignTrailingComments: false
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: false
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: Empty
13+
AllowShortIfStatementsOnASingleLine: false
14+
AllowShortLoopsOnASingleLine: false
15+
AlwaysBreakAfterReturnType: None
16+
AlwaysBreakBeforeMultilineStrings: true
17+
AlwaysBreakTemplateDeclarations: true
18+
BinPackArguments: false
19+
BinPackParameters: false
20+
BreakBeforeBinaryOperators: false
21+
BreakBeforeBraces: Attach
22+
BreakBeforeInheritanceComma: false
23+
BreakBeforeTernaryOperators: true
24+
BreakConstructorInitializers: AfterColon
25+
BreakStringLiterals: true
26+
ColumnLimit: 140
27+
CompactNamespaces: false
28+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
29+
ConstructorInitializerIndentWidth: 2
30+
ContinuationIndentWidth: 4
31+
Cpp11BracedListStyle: true
32+
DerivePointerAlignment: false
33+
FixNamespaceComments: true
34+
IncludeBlocks: Preserve
35+
IndentCaseLabels: false
36+
IndentPPDirectives: None
37+
IndentWidth: 2
38+
IndentWrappedFunctionNames: false
39+
KeepEmptyLinesAtTheStartOfBlocks: false
40+
# LanguageKind: Cpp # Unsupported
41+
MaxEmptyLinesToKeep: 1
42+
NamespaceIndentation: None
43+
# ObjCBinPackProtocolList: Never # Unsupported
44+
ObjCBlockIndentWidth: 2
45+
ObjCSpaceAfterProperty: true
46+
ObjCSpaceBeforeProtocolList: true
47+
PenaltyBreakAssignment: 5
48+
PenaltyBreakBeforeFirstCallParameter: 10
49+
PenaltyBreakComment: 60
50+
PenaltyBreakFirstLessLess: 20
51+
PenaltyBreakString: 1000
52+
PenaltyExcessCharacter: 1000000
53+
PenaltyReturnTypeOnItsOwnLine: 200
54+
PointerAlignment: Left
55+
ReflowComments: true
56+
SortIncludes: true
57+
SortUsingDeclarations: true
58+
SpaceAfterCStyleCast: false
59+
SpaceAfterTemplateKeyword: false
60+
SpaceBeforeAssignmentOperators: true
61+
# SpaceBeforeCtorInitializerColon: false # Unsupported
62+
# SpaceBeforeInheritanceColon: false # Unsupported
63+
SpaceBeforeParens: ControlStatements
64+
# SpaceBeforeRangeBasedForLoopColon: true # Unsupported
65+
SpaceInEmptyParentheses: false
66+
SpacesBeforeTrailingComments: 1
67+
SpacesInAngles: false
68+
SpacesInContainerLiterals: true
69+
SpacesInCStyleCastParentheses: false
70+
SpacesInParentheses: false
71+
SpacesInSquareBrackets: false
72+
Standard: Cpp11
73+
TabWidth: 2
74+
UseTab: Never
75+
...

0 commit comments

Comments
 (0)