[PATCH] D59466: [clang-tidy] openmp-exception-escape - a new check
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 16 13:53:15 PDT 2019
lebedev.ri created this revision.
lebedev.ri added reviewers: JonasToth, aaron.ballman, baloghadamsoftware.
lebedev.ri added projects: clang-tools-extra, OpenMP.
Herald added subscribers: jdoerfert, guansong, rnkovacs, xazax.hun, mgorny.
Herald added a project: clang.
Finally, we are here!
Analyzes OpenMP Structured Blocks and checks that no exception escapes
out of the Structured Block it was thrown in.
As per the OpenMP specification, structured block is an executable statement,
possibly compound, with a single entry at the top and a single exit at the
bottom. Which means, ``throw`` may not be used to to 'exit' out of the
structured block. If an exception is not caught in the same structured block
it was thrown in, the behaviour is undefined / implementation defined,
the program will likely terminate.
rCTE Clang Tools Extra
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15566 bytes
Desc: not available
More information about the cfe-commits