CodeQL library for C/C++
codeql/cpp-all 2.1.1 (changelog, source)
Search

Member predicate Expr::getEnclosingBlock

Gets the nearest enclosing set of curly braces around this expression in the source, if any.

BlockStmt getEnclosingBlock()