CodeQL library for Python
codeql/python-all 4.0.14-dev (changelog, source)
Search

Predicate AlertFilteringImpl::filterByLocation

Holds if the given location is a match for one of the active filtering predicates in this module, or if all filtering predicates are inactive (which means that all alerts must be produced).

Note that this predicate has a bindingset and will therefore be inlined; callers should include enough context to ensure efficient evaluation.

Import path

import codeql.util.AlertFiltering
predicate filterByLocation(Location location)