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

Member predicate Definition::getAnIndirectUse

Gets an Operand that represents an indirect use of this definition.

The use is indirect because the operand represents a pointer that points to the value written by this definition. For example in:

1. int x = 42;
2. int* p = &x;

There is an ExplicitDefinition corresponding to x = 42 on line 1 and the definition has an indirect use on line 2 because &x points to the value that was defined by the definition.

Operand getAnIndirectUse(int indirectionIndex)