summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/cert/MutatingCopyCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Add cert-oop58-cpp checkGabor Bencze2019-12-151-0/+83
The check warns when (a member of) the copied object is assigned to in a copy constructor or copy assignment operator. Based on https://wiki.sei.cmu.edu/confluence/display/cplusplus/OOP58-CPP.+Copy+operations+must+not+mutate+the+source+object Differential Revision: https://reviews.llvm.org/D70052
OpenPOWER on IntegriCloud