Singleton blocks

Author: LGTM

import cpp

from BlockStmt b
where b.getNumStmt() = 1
select b

Description

Finds block statements containing a single statement