CodeQL library for C/C++
Search

Member predicate TryStmt::getACatchClause

Gets a ‘catch block’ of this ‘try’ statement.

For example, for

try { f(); } catch (...) { g(); }

the result is { g(); }.

CatchBlock getACatchClause()