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

Member predicate IfStmt::getThen

Gets the ‘then’ statement of this ‘if’ statement.

For example, for

if (b) { x = 1; }

the result is the BlockStmt { x = 1; }.

Stmt getThen()