xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/cert/err58-cpp.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - cert-err58-cpp
2
3cert-err58-cpp
4==============
5
6This check flags all ``static`` or ``thread_local`` variable declarations where
7the initializer for the object may throw an exception.
8
9This 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>`_.
12