CodeQL library for C/C++
Search

Member predicate BlockStmt::isEmpty

Holds if the block has no statements.

For example, the block

{ }

is empty, as is the block

{
  // a comment
}
predicate isEmpty()