-
Notifications
You must be signed in to change notification settings - Fork 22
/
.clang-format
56 lines (49 loc) · 1.42 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
54
55
56
BasedOnStyle: Google
Language: Cpp
IndentWidth: 4
ColumnLimit: 80
UseTab: Never
AlignConsecutiveMacros: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakStringLiterals: false
IncludeBlocks: Merge
IncludeCategories:
- Regex: '.*'
Priority: 1
- Regex: '<.+>'
Priority: 2
SortIncludes: true
IndentCaseLabels: true
IndentGotoLabels: false
IndentPPDirectives: AfterHash
ReflowComments: false
# 日本語コメントのためのダーティーハック。利用するには次のパッチを当てる必要がある。
# tools/clang-format-align-trailing-comments-kludge.patch
#
# DisableColumnLimitInAlignTrailingComments: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
ForEachMacros:
- LIST_FOR_EACH