codeql/cpp-all
2.0.2-dev
For other CodeQL resources, including tutorials and examples, see the CodeQL documentation
.
Gets the ‘else’ statement of this ‘if’ statement, if any.
For example, for
if (b) { x = 1; } else { x = 2; }
the result is the BlockStmt { x = 2; }, and for
BlockStmt
{ x = 2; }
if (b) { x = 1; }
there is no result.
Stmt getElse()