CodeQL library for C/C++
codeql/cpp-all 0.12.12-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()