This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
forked from hunglc007/tensorflow-yolov4-tflite
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.clang-format
113 lines (95 loc) · 4.27 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# clang-format-9
Language: Cpp
AccessModifierOffset: -4 # public: private: 들여쓰기 offset
AlignAfterOpenBracket: Align # 매개변수 정렬
AlignConsecutiveMacros: true # 매크로 정렬
AlignConsecutiveAssignments: true # 연속적인 변수 초기화 정렬
AlignConsecutiveDeclarations: true # 연속적인 타입 변수 정렬
AlignEscapedNewlines: Left # \ 줄바꾸기 가장 가까운 쪽
AlignOperands: true # 연산자 정렬
AlignTrailingComments: true # 끝의 주석 정렬
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false # 길면 한 줄에 하나씩
AllowShortBlocksOnASingleLine: true # 짧으면 한 줄로
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Always
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None # 리턴타입 줄 바꿈
AlwaysBreakBeforeMultilineStrings: true # 여러 줄 str 처음 줄 바꿈
AlwaysBreakTemplateDeclarations: Yes # 템플릿 줄 바꿈
BinPackArguments: false # 매개변수 정렬
BinPackParameters: false # 선언시 매개변수 정렬
BreakBeforeBraces: Custom
BraceWrapping: # 다음줄에 괄호를 시작할지 결정
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: All # 연산자 전에 줄 바꿈
BreakBeforeTernaryOperators: true # ? : (삼항)연산자 전에 줄 바꿈
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ColumnLimit: 80 # 한 줄 간격
# CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true # {} 시작과 끝 띄어쓰기 x
DerivePointerAlignment: false # .PointerAlignmet fallback
DisableFormat: false
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '<[[:alnum:].]+>'
Priority: 4
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None # 전처리 indent 안함
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false # 시작 시 빈줄 제거
MaxEmptyLinesToKeep: 2 # 최대 빈 줄
NamespaceIndentation: Inner
PointerAlignment: Right # uint16_t *a;
ReflowComments: true # comment 줄 변경
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true # = 앞 공백
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: Never # () 앞 띄어쓰기
SpaceBeforeRangeBasedForLoopColon: false
SpacesBeforeTrailingComments: 4 # // 앞 공백
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never