-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
50 lines (48 loc) · 1.32 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
---
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
Standard: Cpp11
TabWidth: 4
UseTab: ForContinuationAndIndentation
SortIncludes: true
SortUsingDeclarations: true
ColumnLimit: 90
IndentCaseLabels: false
NamespaceIndentation: None
SpaceBeforeParens: ControlStatements
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
PointerAlignment: Middle
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
AlwaysBreakTemplateDeclarations: true
AccessModifierOffset: -4
# BreakInheritanceList: BeforeComma
CommentPragmas: '^ -\*- mode'
...
Language: JavaScript
BasedOnStyle: Mozilla
JavaScriptQuotes: Single
TabWidth: 4
IndentWidth: 4
UseTab: ForContinuationAndIndentation
BreakBeforeBraces: 'Custom'
BraceWrapping: {
AfterClass: 'false'
AfterFunction : 'false'
BeforeCatch : 'false'
IndentBraces : 'false'
}
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortLoopsOnASingleLine: true
ColumnLimit: 90
IndentCaseLabels: false