Skip to content

Commit 4cc99ec

Browse files
author
Witty Wizard
committed
Added: Clang-format
1 parent 8fa58fd commit 4cc99ec

File tree

3 files changed

+727
-541
lines changed

3 files changed

+727
-541
lines changed

.clang-format

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
AccessModifierOffset: -2
2+
AlignAfterOpenBracket: Align
3+
AlignConsecutiveAssignments: false
4+
AlignConsecutiveDeclarations: false
5+
AlignEscapedNewlinesLeft: false
6+
AlignOperands: true
7+
AlignTrailingComments: true
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AllowShortBlocksOnASingleLine: false
10+
AllowShortCaseLabelsOnASingleLine: false
11+
AllowShortFunctionsOnASingleLine: Inline
12+
AllowShortIfStatementsOnASingleLine: false
13+
AllowShortLoopsOnASingleLine: false
14+
AlwaysBreakAfterDefinitionReturnType: TopLevel
15+
AlwaysBreakAfterReturnType: TopLevelDefinitions
16+
AlwaysBreakBeforeMultilineStrings: false
17+
AlwaysBreakTemplateDeclarations: true
18+
BinPackArguments: false
19+
BinPackParameters: true
20+
BraceWrapping:
21+
AfterClass: true
22+
AfterControlStatement: false
23+
AfterEnum: true
24+
AfterFunction: true
25+
AfterNamespace: false
26+
AfterObjCDeclaration: false
27+
AfterStruct: true
28+
AfterUnion: true
29+
BeforeCatch: false
30+
BeforeElse: true
31+
IndentBraces: false
32+
BreakBeforeBinaryOperators: None
33+
BreakBeforeBraces: Custom
34+
BreakBeforeTernaryOperators: true
35+
BreakConstructorInitializersBeforeComma: true
36+
ColumnLimit: 79
37+
CommentPragmas: '^ IWYU pragma:'
38+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
39+
ConstructorInitializerIndentWidth: 2
40+
ContinuationIndentWidth: 2
41+
Cpp11BracedListStyle: false
42+
DerivePointerAlignment: false
43+
DisableFormat: false
44+
ExperimentalAutoDetectBinPacking: false
45+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
46+
IncludeCategories:
47+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
48+
Priority: 2
49+
- Regex: '^(<|"(gtest|isl|json)/)'
50+
Priority: 3
51+
- Regex: '.*'
52+
Priority: 1
53+
IndentCaseLabels: false
54+
IndentWidth: 2
55+
IndentWrappedFunctionNames: false
56+
KeepEmptyLinesAtTheStartOfBlocks: true
57+
MacroBlockBegin: ''
58+
MacroBlockEnd: ''
59+
MaxEmptyLinesToKeep: 1
60+
NamespaceIndentation: None
61+
ObjCBlockIndentWidth: 2
62+
ObjCSpaceAfterProperty: true
63+
ObjCSpaceBeforeProtocolList: false
64+
PointerAlignment: Right
65+
ReflowComments: true
66+
SortIncludes: false
67+
SpaceAfterCStyleCast: false
68+
SpaceBeforeAssignmentOperators: true
69+
SpaceBeforeParens: Never
70+
SpaceInEmptyParentheses: false
71+
SpacesBeforeTrailingComments: 1
72+
SpacesInAngles: false
73+
SpacesInContainerLiterals: true
74+
SpacesInCStyleCastParentheses: false
75+
SpacesInParentheses: false
76+
SpacesInSquareBrackets: false
77+
Standard: Cpp11
78+
TabWidth: 8
79+
UseTab: Never

0 commit comments

Comments
 (0)