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

Member predicate WhileStmt::conditionAlwaysFalse

Holds if the loop condition is provably false.

For example, this holds for

while(0) { ...; }
predicate conditionAlwaysFalse()