forked from Tencent/MMKV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
36 lines (35 loc) · 835 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
---
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: InlineOnly
#AllowShortLambdasOnASingleLine: Inline
BreakAfterJavaFieldAnnotations: true
BreakBeforeBraces: Linux
SpaceAfterCStyleCast: true
IndentCaseLabels: true
AccessModifierOffset: -4
BreakBeforeBraces: Custom
BraceWrapping:
AfterNamespace: false
AfterClass: false
AfterFunction: false
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BinPackParameters: false
ReflowComments: false
ObjCBlockIndentWidth: 4
---
Language: Cpp
ColumnLimit: 120
IndentPPDirectives: AfterHash
---
Language: ObjC
ColumnLimit: 0
#UseTab: ForIndentation
---
Language: Java
ColumnLimit: 120
AllowShortFunctionsOnASingleLine: None
BreakBeforeBinaryOperators: NonAssignment