質問編集履歴
3
.clang-formatの設定を載せました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -109,3 +109,13 @@
|
|
109
109
|
### 追記
|
110
110
|
|
111
111
|
普段はBreakBeforeBracesはStroustrupです。
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
拡張機能はC/C++、Clang command adapter configulationです。(調節関係ありそうなのは)
|
116
|
+
|
117
|
+
![イメージ説明](b195a9932d22dfa48a66f55b6c38de60.png)
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
![イメージ説明](5b4e4e75586fafaa94885a3a0ad4e50e.png)
|
2
追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -103,3 +103,9 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
clang-formatのbracewrappingの見直し、BreakConstructorInitializersBeforeComma: falseの設定
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
### 追記
|
110
|
+
|
111
|
+
普段はBreakBeforeBracesはStroustrupです。
|
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,6 +19,34 @@
|
|
19
19
|
{
|
20
20
|
|
21
21
|
cout << "A(int newX) is called.\n";
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
};
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```cPP
|
32
|
+
|
33
|
+
struct Person {
|
34
|
+
|
35
|
+
string name;
|
36
|
+
|
37
|
+
int age;
|
38
|
+
|
39
|
+
Person() {}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Person(const string &newName, int newAge)
|
44
|
+
|
45
|
+
: name(newName)
|
46
|
+
|
47
|
+
, age(newAge)
|
48
|
+
|
49
|
+
{
|
22
50
|
|
23
51
|
}
|
24
52
|
|
@@ -48,6 +76,26 @@
|
|
48
76
|
|
49
77
|
|
50
78
|
|
79
|
+
```cpp
|
80
|
+
|
81
|
+
struct Person {
|
82
|
+
|
83
|
+
string name;
|
84
|
+
|
85
|
+
int age;
|
86
|
+
|
87
|
+
Person() {}
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Person(const string &newName, int newAge) : name(newName, age(newAge {}
|
92
|
+
|
93
|
+
};
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
51
99
|
|
52
100
|
|
53
101
|
### 試したこと
|