mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
14 lines
236 B
Plaintext
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
|