CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds return statements that return `0`

import cpp

from ReturnStmt r
where r.getExpr().(Literal).getValue().toInt() = 0
select r