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

Member predicate ConstexprIfStmt::getCondition

Gets the condition expression of this ‘constexpr if’ statement.

For example, for

if constexpr (b) { x = 1; }

the result is b.

Expr getCondition()