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

Predicate signature Configs::ConfigSig::getASelectedSinkLocation

Gets a location that will be associated with the given sink in a diff-informed query that uses this configuration (see observeDiffInformedIncrementalMode). By default, this is the location of the sink itself, but this predicate should include any locations that are reported as the primary-location of the query or as an additional location (“$@” interpolation). For a query that doesn’t report the sink at all, this predicate can be none().

signature Location getASelectedSinkLocation(Node sink)