| 1 |
.. title:: clang-tidy - openmp-exception-escape |
| 2 |
|
| 3 |
openmp-exception-escape |
| 4 |
======================= |
| 5 |
|
| 6 |
Analyzes OpenMP Structured Blocks and checks that no exception escapes |
| 7 |
out of the Structured Block it was thrown in. |
| 8 |
|
| 9 |
As per the OpenMP specification, a structured block is an executable statement, |
| 10 |
possibly compound, with a single entry at the top and a single exit at the |
| 11 |
bottom. Which means, ``throw`` may not be used to 'exit' out of the |
| 12 |
structured block. If an exception is not caught in the same structured block |
| 13 |
it was thrown in, the behavior is undefined. |
| 14 |
|
| 15 |
FIXME: this check does not model SEH, ``setjmp``/``longjmp``. |
| 16 |
|
| 17 |
WARNING! This check may be expensive on large source files. |
| 18 |
|
| 19 |
Options |
| 20 |
------- |
| 21 |
|
| 22 |
.. option:: IgnoredExceptions |
| 23 |
|
| 24 |
Comma-separated list containing type names which are not counted as thrown |
| 25 |
exceptions in the check. Default value is an empty string. |