-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
49 lines (48 loc) · 1.71 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
# See http://clang.llvm.org/docs/ClangFormatStyleOptions.html for examples
BasedOnStyle: Chromium
AlignAfterOpenBracket: 'DontAlign'
AlignOperands: 'true'
# clang-format 9: AllowAllArgumentsOnNextLine: 'true'
# clang-format 9: AllowAllConstructorInitializersOnNextLine: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortFunctionsOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: 'Inline'
AllowShortIfStatementsOnASingleLine: 'true'
# clang-format 9: AllowShortIfStatementsOnASingleLine: 'WithoutElse'
# clang-format 9: AllowShortLambdasOnASingleLine: 'All'
AllowShortLoopsOnASingleLine: 'true'
AlwaysBreakBeforeMultilineStrings: 'true'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'true'
BinPackParameters: 'true'
BreakBeforeBinaryOperators: 'NonAssignment'
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializersBeforeComma: 'true'
ColumnLimit: '100'
CompactNamespaces: 'true'
Cpp11BracedListStyle: 'true'
DerivePointerAlignment: 'false'
ExperimentalAutoDetectBinPacking: 'true'
IncludeBlocks: 'Preserve'
IndentCaseLabels: 'false'
IndentPPDirectives: 'AfterHash'
# clang-format 9: IndentPPDirectives: 'BeforeHash'
IndentWrappedFunctionNames: 'false'
KeepEmptyLinesAtTheStartOfBlocks: 'true'
MaxEmptyLinesToKeep: '2'
#PenaltyBreakAssignment: '30'
#PenaltyReturnTypeOnItsOwnLine: '100'
#PenaltyBreakBeforeFirstCallParameter: '100'
#PenaltyExcessCharacter: '100'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
# clang-format 9: SpaceBeforeCtorInitializerColon: 'false'
# clang-format 9: SpaceBeforeInheritanceColon: 'false'
# clang-format 9: SpaceBeforeRangeBasedForLoopColon: 'false'
SpaceBeforeParens: Never
Standard: Cpp11
TabWidth: '2'
UseTab: Never
...