llvm-project/clang-tools-extra/docs/clang-tidy/checks/misc-non-copyable-objects.rst

14 lines
519 B
ReStructuredText

.. title:: clang-tidy - misc-non-copyable-objects
misc-non-copyable-objects
=========================
"cert-fio38-c" redirects here as an alias for this check.
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>`_.