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

14 lines
236 B
Plaintext

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