mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
14 lines
234 B
Plaintext
14 lines
234 B
Plaintext
/**
|
|
* @name Return statements
|
|
* @description Finds return statements that return `0`
|
|
* @tags return
|
|
* statement
|
|
* literal
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from ReturnStmt r
|
|
where r.getExpr().(Literal).getValue().toInt() = 0
|
|
select r
|