CodeQL library for C/C++
codeql/cpp-all 0.4.0-dev (changelog, source)
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()