CodeQL library for C/C++
Search

Member predicate IfStmt::getCondition

Gets the condition expression of this ‘if’ statement.

For example, for

if (b) { x = 1; }

the result is b.

Expr getCondition()