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