forked from i2Nav-WHU/KF-GINS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
39 lines (33 loc) · 850 Bytes
/
.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
# clang-format configuration
# created by hailiang
# Base
BasedOnStyle: LLVM
# Indent
UseTab: Never
TabWidth: 4
IndentWidth: 4
ColumnLimit: 120
AccessModifierOffset: -4
ObjCBlockIndentWidth: 4
IndentWrappedFunctionNames: true
IndentCaseLabels: true
# Line
MaxEmptyLinesToKeep: 1
SpaceBeforeAssignmentOperators: true
SpacesInContainerLiterals: true
KeepEmptyLinesAtTheStartOfBlocks: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowAllParametersOfDeclarationOnNextLine: true
BreakConstructorInitializersBeforeComma: true
# Space
PointerAlignment: Right
SpacesInSquareBrackets: false
SpacesInParentheses: false
SpaceAfterCStyleCast: true
# Alignment
ObjCSpaceAfterProperty: true
AlignTrailingComments: true
AlignOperands: true
AlignConsecutiveDeclarations: None
AlignConsecutiveAssignments: Consecutive