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

Member predicate SwitchCase::getEndExpr

Gets the end of the range, if this is a GNU case range. Otherwise has no result.

For example, for

case 6 ... 7:

the result is 7, while for

case 5:

and

default:

there is no result.

Expr getEndExpr()