-
Notifications
You must be signed in to change notification settings - Fork 78
/
.clang-format
43 lines (38 loc) · 1.06 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
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
BreakBeforeBraces: Allman
IndentCaseLabels: false
ColumnLimit: 120
AccessModifierOffset: -4
PointerAlignment: Left
BinPackArguments: false
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Left
BreakStringLiterals: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"\.\./.*"'
Priority: 2
- Regex: '^".*"'
Priority: 1
- Regex: '^<[a-z_]+>'
Priority: 5
- Regex: '^<.*>'
Priority: 3
NamespaceIndentation: All
AlwaysBreakTemplateDeclarations: Yes
BreakConstructorInitializers: BeforeComma
SpaceAfterTemplateKeyword: false
AllowShortIfStatementsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
# BeforeLambdaBody doesn't seem to work
#BraceWrapping:
# BeforeLambdaBody: true
PenaltyReturnTypeOnItsOwnLine: 1000
TypenameMacros: ['STDMETHODCALLTYPE']