CodeQL library for C/C++
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()