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