-
Notifications
You must be signed in to change notification settings - Fork 53
/
.clang-format
53 lines (53 loc) · 1.69 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
50
51
52
53
---
### General default config, applies to all languages ###
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: true
AlignOperands: true
AlignTrailingComments: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: false
ContinuationIndentWidth: 4
ColumnLimit: 120
IndentCaseLabels: true
IndentWidth: 4
PenaltyBreakComment: 10000000
SpaceBeforeParens: Never
SpacesInParentheses: true
TabWidth: 4
UseTab: Never
---
Language: Cpp
Standard: C++11
AlwaysBreakTemplateDeclarations: Yes
Cpp11BracedListStyle: false
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8
FixNamespaceComments: true
IncludeCategories:
- Regex: '".*"'
Priority: 1
- Regex: '^<.*\.h>'
Priority: 2
- Regex: '^<.*'
Priority: 3
NamespaceIndentation: None
PointerAlignment: Middle
SpaceAfterTemplateKeyword: false
SpacesInAngles: false
---
Language: JavaScript
AlignConsecutiveAssignments: false
BreakBeforeBraces: Attach
ContinuationIndentWidth: 2
IndentWidth: 2
JavaScriptQuotes: Single
SpacesInContainerLiterals: true
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
TabWidth: 2