summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/misc-non-copyable-objects.rst
blob: e876e8b74e1d4227a78532ee98e912e122ceb711 (plain)
1
2
3
4
5
6
7
8
9
misc-non-copyable-objects
=========================

The check flags dereferences and non-pointer declarations of objects that are
not meant to be passed by value, such as C FILE objects or POSIX
pthread_mutex_t objects.

This check corresponds to CERT C++ Coding Standard rule `FIO38-C. Do not copy a FILE object
<https://www.securecoding.cert.org/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object>`_.
OpenPOWER on IntegriCloud