Skip to content

Commit 63fd2cb

Browse files
committed
Add ZeroTier standard .clang-format -- Keeping tabs for 1.X line. Mostly based on LLVM format.
1 parent 1732f73 commit 63fd2cb

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.clang-format

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
BasedOnStyle: LLVM
3+
BreakBeforeBraces: Stroustrup
4+
IndentWidth: 4
5+
TabWidth: 4
6+
AlignAfterOpenBracket: AlwaysBreak
7+
AlignConsecutiveMacros: 'true'
8+
AlignConsecutiveAssignments: 'false'
9+
AlignConsecutiveDeclarations: 'false'
10+
AlignEscapedNewlines: Right
11+
AlignOperands: 'true'
12+
AlignTrailingComments: 'true'
13+
AllowAllArgumentsOnNextLine: 'false'
14+
AllowAllConstructorInitializersOnNextLine: 'false'
15+
AllowAllParametersOfDeclarationOnNextLine: 'false'
16+
AllowShortBlocksOnASingleLine: 'true'
17+
AllowShortCaseLabelsOnASingleLine: 'false'
18+
AllowShortFunctionsOnASingleLine: None
19+
AllowShortIfStatementsOnASingleLine: Never
20+
AlwaysBreakAfterReturnType: None
21+
BinPackArguments: 'false'
22+
BinPackParameters: 'false'
23+
BreakBeforeBinaryOperators: NonAssignment
24+
BreakBeforeTernaryOperators: 'true'
25+
BreakConstructorInitializers: BeforeComma
26+
BreakInheritanceList: BeforeComma
27+
CompactNamespaces: 'false'
28+
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
29+
ConstructorInitializerIndentWidth: '4'
30+
ContinuationIndentWidth: '4'
31+
Cpp11BracedListStyle: 'false'
32+
FixNamespaceComments: 'true'
33+
IncludeBlocks: Regroup
34+
IndentCaseLabels: 'true'
35+
IndentPPDirectives: None
36+
IndentWrappedFunctionNames: 'false'
37+
KeepEmptyLinesAtTheStartOfBlocks: 'false'
38+
MaxEmptyLinesToKeep: '1'
39+
NamespaceIndentation: None
40+
PointerAlignment: Left
41+
ReflowComments: 'true'
42+
SortIncludes: 'true'
43+
SortUsingDeclarations: 'true'
44+
SpaceAfterCStyleCast: 'false'
45+
SpaceAfterLogicalNot: 'true'
46+
SpaceAfterTemplateKeyword: 'true'
47+
SpaceBeforeAssignmentOperators: 'true'
48+
SpaceBeforeCpp11BracedList: 'true'
49+
SpaceBeforeCtorInitializerColon: 'true'
50+
SpaceBeforeInheritanceColon: 'true'
51+
SpaceBeforeParens: ControlStatements
52+
SpaceBeforeRangeBasedForLoopColon: 'true'
53+
SpaceInEmptyParentheses: 'false'
54+
SpacesBeforeTrailingComments: '3'
55+
SpacesInAngles: 'false'
56+
SpacesInCStyleCastParentheses: 'false'
57+
SpacesInContainerLiterals: 'true'
58+
SpacesInParentheses: 'false'
59+
SpacesInSquareBrackets: 'false'
60+
UseTab: 'Always'
61+
62+
---
63+
Language: Cpp
64+
Standard: Cpp03
65+
ColumnLimit: '240'
66+
---
67+
Language: ObjC
68+
ColumnLimit: '240'
69+
---
70+
Language: Java
71+
ColumnLimit: '240'
72+
---
73+
Language: CSharp
74+
ColumnLimit: '240'
75+
...

0 commit comments

Comments
 (0)