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

Member predicate AllocationMemoryLocation::getAnAllocation

Gets an allocation associated with this MemoryLocation.

This returns zero or one results in all cases except when this is an instance of GroupedMemoryLocation. When this is an instance of GroupedMemoryLocation this predicate always returns two or more results.

Allocation getAnAllocation()