| 1 |
.. title:: clang-tidy - cert-err58-cpp |
| 2 |
|
| 3 |
cert-err58-cpp |
| 4 |
============== |
| 5 |
|
| 6 |
This check flags all ``static`` or ``thread_local`` variable declarations where |
| 7 |
the initializer for the object may throw an exception. |
| 8 |
|
| 9 |
This check corresponds to the CERT C++ Coding Standard rule |
| 10 |
`ERR58-CPP. Handle all exceptions thrown before main() begins executing |
| 11 |
<https://www.securecoding.cert.org/confluence/display/cplusplus/ERR58-CPP.+Handle+all+exceptions+thrown+before+main%28%29+begins+executing>`_. |