diff options
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst')
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst new file mode 100644 index 00000000000..bb25ab06454 --- /dev/null +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-static-object-exception.rst @@ -0,0 +1,9 @@ +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>`_. |