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

Member predicate SwitchStmt::getASwitchCase

Gets a ‘switch case’ statement of this ‘switch’ statement.

For example, for

switch(i) {
    case 1:
    case 2:
    break;
    default:
    break;
}

the results are case 1:, case 2: and default:.

SwitchCase getASwitchCase()