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

Member predicate ConstevalIfStmt::getThen

Gets the ‘then’ statement of this ‘(not) consteval if’ statement.

For example, for

if consteval { return true; }

the result is the BlockStmt { return true; }.

Stmt getThen()