| 1 |
.. title:: clang-tidy - misc-non-copyable-objects |
| 2 |
|
| 3 |
misc-non-copyable-objects |
| 4 |
========================= |
| 5 |
|
| 6 |
`cert-fio38-c` redirects here as an alias for this check. |
| 7 |
|
| 8 |
The check flags dereferences and non-pointer declarations of objects that are |
| 9 |
not meant to be passed by value, such as C FILE objects or POSIX |
| 10 |
``pthread_mutex_t`` objects. |
| 11 |
|
| 12 |
This 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>`_. |