CodeQL library for C/C++
codeql/cpp-all 2.0.2-dev (changelog, source)
Search

Member predicate TryStmt::getNumberOfCatchClauses

Gets the number of ’catch block’s of this ‘try’ statement.

For example, for

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

the result is 1.

int getNumberOfCatchClauses()