forked from EmbeddedRPC/erpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
71 lines (71 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#https://releases.llvm.org/5.0.2/tools/clang/docs/ClangFormatStyleOptions.html
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: "Inline"
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: true
BasedOnStyle: "Google"
#BinPackParameters : false
BreakBeforeBinaryOperators: false
BreakBeforeBraces: "Custom"
BreakBeforeTernaryOperators: false
ColumnLimit: 120
ContinuationIndentWidth: 4
DerivePointerAlignment: false
DisableFormat: false
IndentCaseLabels: true
IndentWrappedFunctionNames: false
IndentWidth: 4
Language: "Cpp"
MaxEmptyLinesToKeep: 1
PointerBindsToType: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: "ControlStatements"
SpacesBeforeTrailingComments: 1
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: "Cpp03"
TabWidth: 1
UseTab: "Never"
AccessModifierOffset: -4
AlignAfterOpenBracket: "Align"
AlignEscapedNewlines: "Left"
AlignOperands: true
AllowShortCaseLabelsOnASingleLine: false
AlwaysBreakAfterReturnType: "None"
AlwaysBreakTemplateDeclarations: true
BreakBeforeInheritanceComma: false
BreakConstructorInitializers: "BeforeComma"
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
Cpp11BracedListStyle: false
FixNamespaceComments: true
NamespaceIndentation: "None"
PointerAlignment: "Right"
SortIncludes: true
SortUsingDeclarations: true
SpacesInAngles: false
SpaceAfterCStyleCast: false
SpaceInEmptyParentheses: false
SpacesInSquareBrackets: false
KeepEmptyLinesAtTheStartOfBlocks: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
#IncludeBlocks: "Preserve" # for future version of clang
IncludeCategories:
- Regex: "^<" # system includes
Priority: 10
- Regex: '^"erpc_' # erpc public includes
Priority: 1