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

Member predicate Symbol::getADependentElement

Gets an element which depends upon this symbol.

To a first approximation, dependent elements can be thought of as occurrences of the symbol’s name: instances of VariableAccess for Variable symbols, instances of MacroInvocation for Macro symbols, and so on.

category: 1 - C/C++ compile-time dependency 2 - C/C++ link-time dependency (or transitive dependency with a link-time component)

Element getADependentElement(int category)