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