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

Member predicate BlockStmt::getADeclaration

Gets a child declaration of this block.

For example, for the block

{ int a; int b = 1; a = b; }

it would have 2 results, for the declarations of a and b.

Declaration getADeclaration()