Files
codeql-lab/codeql-custom-queries-cpp/example.ql
2019-11-12 14:05:48 -08:00

12 lines
193 B
Plaintext

/**
* @name Empty block
* @kind problem
* @problem.severity warning
* @id cpp/example/empty-block
*/
import cpp
from Block b
where b.getNumStmt() = 0
select b, "This is an empty block."