12 lines · plain
1.. title:: clang-tidy - bugprone-copy-constructor-mutates-argument2 3bugprone-copy-constructor-mutates-argument4==========================================5 6Finds assignments to the copied object and its direct or indirect members7in copy constructors and copy assignment operators.8 9This check corresponds to the CERT C Coding Standard rule10`OOP58-CPP. Copy operations must not mutate the source object11<https://wiki.sei.cmu.edu/confluence/display/cplusplus/OOP58-CPP.+Copy+operations+must+not+mutate+the+source+object>`_.12