CodeQL library for C/C++
Search

Member predicate TryStmt::getCatchClause

Gets the nth ‘catch block’ of this ‘try’ statement.

For example, for

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

the result of getCatchClause(0) is { g(); }.

CatchBlock getCatchClause(int n)