xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/cert/oop58-cpp.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - cert-mutating-copy
2
3cert-oop58-cpp
4==============
5
6Finds assignments to the copied object and its direct or indirect members
7in copy constructors and copy assignment operators.
8
9This 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>`_.
12