.. title:: clang-tidy - modernize-avoid-setjmp-longjmp

modernize-avoid-setjmp-longjmp
==============================

Flags all call expressions involving ``setjmp()`` and ``longjmp()`` in C++ code.

Exception handling with ``throw`` and ``catch`` should be used instead.

References
----------

This check corresponds to the CERT C++ Coding Standard rule
`ERR52-CPP. Do not use setjmp() or longjmp()
<https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=88046492>`_.
