Skip to content

Commit 6e9dde1

Browse files
committed
Change the label of a case and break it down
1 parent 184da86 commit 6e9dde1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • cpp/misra/test/rules/RULE-15-0-1

cpp/misra/test/rules/RULE-15-0-1/test.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,13 @@ class CopyEnabledCustomizedDtorCompliant1 { // COMPLIANT: copy-enabled (2)
267267
CUSTOMIZED, CUSTOMIZED, CUSTOMIZED, CUSTOMIZED)
268268
};
269269

270-
class CopyEnabledCustomizedDtorCompliant2 { // COMPLIANT: copy-enabled (2)
270+
class CopyEnabledCustomizedDtorCompliant2 { // NON-COMPLIANT: copy-enabled (2)
271271
public:
272-
DEFINE_ALL_SPECIAL_MEMBERS(CopyEnabledCustomizedDtorCompliant2, CUSTOMIZED,
273-
DEFAULTED, CUSTOMIZED, DEFAULTED, CUSTOMIZED)
272+
COPY_CTOR(CopyEnabledCustomizedDtorCompliant2) CUSTOMIZED
273+
// Move constructor is not declared
274+
COPY_ASSIGN(CopyEnabledCustomizedDtorCompliant2) CUSTOMIZED
275+
MOVE_ASSIGN(CopyEnabledCustomizedDtorCompliant2) DEFAULTED
276+
DTOR(CopyEnabledCustomizedDtorCompliant2) CUSTOMIZED
274277
};
275278

276279
class CopyAssignableCustomizedDtorCompliant1 { // COMPLIANT: copy-assignable class with both move operations customized

0 commit comments

Comments
 (0)