26 lines · plain
1.. title:: clang-tidy - openmp-exception-escape2 3openmp-exception-escape4=======================5 6Analyzes OpenMP Structured Blocks and checks that no exception escapes7out of the Structured Block it was thrown in.8 9As per the OpenMP specification, a structured block is an executable statement,10possibly compound, with a single entry at the top and a single exit at the11bottom. Which means, ``throw`` may not be used to 'exit' out of the12structured block. If an exception is not caught in the same structured block13it was thrown in, the behavior is undefined.14 15FIXME: this check does not model SEH, ``setjmp``/``longjmp``.16 17WARNING! This check may be expensive on large source files.18 19Options20-------21 22.. option:: IgnoredExceptions23 24 Comma-separated list containing type names which are not counted as thrown25 exceptions in the check. Default value is an empty string.26