Files
codeql/cpp/ql/examples/snippets/emptyblock.ql
2020-09-08 08:40:20 +02:00

15 lines
225 B
Plaintext

/**
* @id cpp/examples/emptyblock
* @name Empty blocks
* @description Finds empty block statements
* @tags empty
* block
* statement
*/
import cpp
from BlockStmt blk
where blk.getNumStmt() = 0
select blk