summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst
blob: 9fec67f0ec48dd0b8db4f4a52639b8d62581b277 (plain)
1
2
3
4
5
6
7
8
9
10
11
.. title:: clang-tidy - cert-err58-cpp

cert-err58-cpp
==============

This check flags all static or thread_local variable declarations where the
constructor for the object may throw an exception.

This check corresponds to the CERT C++ Coding Standard rule
`ERR58-CPP. Constructors of objects with static or thread storage duration must not throw exceptions
<https://www.securecoding.cert.org/confluence/display/cplusplus/ERR58-CPP.+Constructors+of+objects+with+static+or+thread+storage+duration+must+not+throw+exceptions>`_.
OpenPOWER on IntegriCloud