xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/misc/non-copyable-objects.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - misc-non-copyable-objects
2
3misc-non-copyable-objects
4=========================
5
6`cert-fio38-c` redirects here as an alias for this check.
7
8The check flags dereferences and non-pointer declarations of objects that are
9not meant to be passed by value, such as C FILE objects or POSIX
10``pthread_mutex_t`` objects.
11
12This check corresponds to CERT C++ Coding Standard rule `FIO38-C. Do not copy a FILE object
13<https://www.securecoding.cert.org/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object>`_.
14