@@ -166,27 +166,31 @@ class NonTrivial {
166166// User declared destructor, deprecated CC and assignment.
167167class C1 { // NON_COMPLIANT
168168 NonTrivial m1;
169+
169170public:
170- ~C1 ()= default ;
171+ ~C1 () = default ;
171172};
172173
173- // User declared CC results in deprecated
174+ // User declared CC results in deprecated
174175class C2 { // NON_COMPLIANT
175176 NonTrivial m1;
177+
176178public:
177- C2 (const C2 &)= default ;
179+ C2 (const C2 &) = default ;
178180};
179181
180182// User declared assignment results in deprecated
181183class C3 { // NON_COMPLIANT
182184 NonTrivial m1;
185+
183186public:
184- C3 &operator =(const C3 &)= default ;
187+ C3 &operator =(const C3 &) = default ;
185188};
186189
187190// Explicitly defaulted CC and assignment
188191class C4 { // NON_COMPLIANT
189192 NonTrivial m1;
193+
190194public:
191195 C4 (const C4 &) = default ;
192196 C4 &operator =(const C4 &) = default ;
@@ -195,6 +199,7 @@ class C4 { // NON_COMPLIANT
195199// Explicitly defaulted CC and assignment, user declared dtor
196200class C5 { // NON_COMPLIANT
197201 NonTrivial m1;
202+
198203public:
199204 C5 (const C5 &) = default ;
200205 C5 &operator =(const C5 &) = default ;
@@ -204,6 +209,7 @@ class C5 { // NON_COMPLIANT
204209// User defined CC and assignment, user declared dtor
205210class C6 { // COMPLIANT
206211 NonTrivial m1;
212+
207213public:
208214 C6 (const C6 &) {}
209215 C6 &operator =(const C6 &) { return *this ; }
@@ -213,6 +219,7 @@ class C6 { // COMPLIANT
213219// Trivial with explicitly defaulted CC and assignment, user declared dtor
214220class C7 { // NON_COMPLIANT
215221 int m1;
222+
216223public:
217224 C7 (const C7 &) = default ;
218225 C7 &operator =(const C7 &) = default ;
@@ -222,6 +229,7 @@ class C7 { // NON_COMPLIANT
222229// Trivial with explicitly defaulted CC and assignment, implicit ctor
223230class C8 { // NON_COMPLIANT
224231 int m1;
232+
225233public:
226234 C8 (const C8 &) = default ;
227235 C8 &operator =(const C8 &) = default ;
@@ -230,6 +238,7 @@ class C8 { // NON_COMPLIANT
230238// Trivial with user declared dtor
231239class C9 { // NON_COMPLIANT
232240 int m1;
241+
233242public:
234243 ~C9 () = default ;
235244};
@@ -246,11 +255,13 @@ class C11 { // COMPLIANT
246255
247256class C12 {
248257 static constexpr int m1 = 42 ; // COMPLIANT - static constexpr data member
249- static constexpr int m2 = 42 ; // NON_COMPLIANT - redeclaration of static constexpr data member
258+ static constexpr int m2 =
259+ 42 ; // NON_COMPLIANT - redeclaration of static constexpr data member
250260 static const int m3 = 42 ; // COMPLIANT - static const data member
251261 static const int m4 = 42 ; // COMPLIANT - static const data member
252- static const int m5; // COMPLIANT - static const data member
262+ static const int m5; // COMPLIANT - static const data member
253263};
254264
255- constexpr int C12::m2; // NON_COMPLIANT - definition of static constexpr data member
265+ constexpr int
266+ C12::m2; // NON_COMPLIANT - definition of static constexpr data member
256267const int C12::m4; // COMPLIANT - definition of static const data member
0 commit comments