回答編集履歴
2
d
answer
CHANGED
@@ -12,6 +12,12 @@
|
|
12
12
|
AllowShortLoopsOnASingleLine: true
|
13
13
|
```
|
14
14
|
|
15
|
+
* if や for 文で {} ブロックがある場合は行数に関わらず、改行する。
|
16
|
+
|
17
|
+
```
|
18
|
+
AllowShortBlocksOnASingleLine: false
|
19
|
+
```
|
20
|
+
|
15
21
|
## 資料
|
16
22
|
|
17
23
|
公式資料
|
1
d
answer
CHANGED
@@ -24,6 +24,8 @@
|
|
24
24
|
|
25
25
|
## サンプル
|
26
26
|
|
27
|
+
clang-format バージョン9 で確認
|
28
|
+
|
27
29
|
.clang-format
|
28
30
|
```
|
29
31
|
AllowShortIfStatementsOnASingleLine: true
|