-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
54 lines (48 loc) · 1.44 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
# https://releases.llvm.org/6.0.0/tools/clang/docs/ClangFormatStyleOptions.html
# LLVM 스타일을 기반으로 한 C++ 코딩 스타일.
BasedOnStyle: LLVM
Language: Cpp
# 공백 설정
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
# 들여쓰기 설정
IndentCaseLabels: true
IndentWidth: 4
IndentWrappedFunctionNames: false
TabWidth: 4
UseTab: false
# 코드 정렬 설정
AlignAfterOpenBracket: Align
# AlignConsecutiveAssignments: false
# AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignTrailingComments: true
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
# BinPackArguments: false
# BinPackParameters: false
# BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
SortIncludes: true
SortUsingDeclarations: true
# 포인터 변수 스타일 설정
DerivePointerAlignment: false
PointerAlignment: Right
# 나머지 스타일 설정
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
ColumnLimit: 0
MaxEmptyLinesToKeep: 1