File tree Expand file tree Collapse file tree
cpp/misra/test/rules/RULE-15-0-1 Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
271271public:
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
276279class CopyAssignableCustomizedDtorCompliant1 { // COMPLIANT: copy-assignable class with both move operations customized
You can’t perform that action at this time.
0 commit comments