Files
codeql/cpp/ql/examples/snippets/singletonblock.ql
2019-07-26 17:47:11 +02:00

14 lines
232 B
Plaintext

/**
* @id cpp/examples/singletonblock
* @name Singleton blocks
* @description Finds block statements containing a single statement
* @tags block
* statement
*/
import cpp
from Block b
where b.getNumStmt() = 1
select b