-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
180 lines (126 loc) · 2.67 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#
# Clang-Format configuration file
#
# Copyright (c) 2022-2023 Okawa Yusuke
#
# Style options reference: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
#
# インデントにタブを使用しない
#
UseTab: Never
#
# インデント幅
#
IndentWidth: 4
#
# コンティニュエーションインデント幅
#
ContinuationIndentWidth: 4
#
# 行コメントの前のスペースの数
#
SpacesBeforeTrailingComments: 4
#
# 引数が複数行にまたがる場合のスタイル
#
BinPackParameters: true
#
# 複数行で連続する `=` の位置を揃える
#
AlignConsecutiveAssignments: true
#
# 複数行で連続する宣言の位置を揃える
#
AlignConsecutiveDeclarations: true
#
# エスケープされた改行を可能な限り左に配置
#
AlignEscapedNewlinesLeft: false
#
# 中括弧の前で改行する
#
BreakBeforeBraces: Allman
#
# 関数の引数のインデント
#
AllowShortIfStatementsOnASingleLine: false
#
# 最大行幅 (0: 無制限)
#
ColumnLimit: 0
#
# 最大数空白行数
#
MaxEmptyLinesToKeep: 2
#
# 名前空間のインデント
#
NamespaceIndentation: All
#
# 名前空間の終わりに名前空間名をコメントで付ける
#
FixNamespaceComments: true
#
# 引数にラムダ式を渡す場合に1行にする
#
AllowShortLambdasOnASingleLine: Inline
#
# アクセス修飾子のインデント
#
AccessModifierOffset: -4
#
# 継承時、基底クラス名のインデントスタイル
#
# class DerivedClass
# : public BaseClass
# , public Interface
#
BreakInheritanceList: BeforeComma
#
# コンストラクタの初期化リストのインデントスタイル
#
# Constructor()
# : initializer1()
# , initializer2()
#
BreakConstructorInitializers: BeforeComma
#
# コンストラクタの初期化リストのインデント幅
#
ConstructorInitializerIndentWidth: 4
#
# 中括弧のスタイル
#
# true : int array[] = { 1, 2, 3, 4, 5 };
# false: int array[] = {1, 2, 3, 4, 5};
#
Cpp11BracedListStyle: false
#
# Switch 文の case のインデントをなくす
#
IndentCaseLabels: false
#
# Switch 文の case 内が単数行の場合に1行にする
#
AllowShortCaseLabelsOnASingleLine: true
#
# インクルードファイルのソート
#
SortIncludes: false
#
# ポインタの `*` の位置
#
PointerAlignment: Left
#
# 参照型の `&` の位置
#
ReferenceAlignment: Left
#
# プリプロセッサディレクティブのインデント
#
PPIndentWidth: 4
#
# ネストされたプリプロセッサディレクティブのインデント
#
IndentPPDirectives: AfterHash