clang-tools-extra/docs/clang-tidy/checks/cert/oop58-cpp.rst
raw| 1 | .. title:: clang-tidy - cert-mutating-copy |
| 2 | |
| 3 | cert-oop58-cpp |
| 4 | ============== |
| 5 | |
| 6 | Finds assignments to the copied object and its direct or indirect members |
| 7 | in copy constructors and copy assignment operators. |
| 8 | |
| 9 | This check corresponds to the CERT C Coding Standard rule |
| 10 | `OOP58-CPP. Copy operations must not mutate the source object |
| 11 | <https://wiki.sei.cmu.edu/confluence/display/cplusplus/OOP58-CPP.+Copy+operations+must+not+mutate+the+source+object>`_. |