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

Member predicate SwitchCase::getChildNum

Gets the 0-based index of this ‘switch case’ statement within its ‘switch’ statement.

For example, for

switch(i) {
case 5:
case 6:
default:
}

the case 5: has result 0, case 6: has result 1, and default: has result 2.

int getChildNum()