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

Predicate dependsOnTransitive

Holds if src is related to dest by one dependsOnSimple and any number of dependsOnViaTemplate steps.

Consider using Symbol.getADependentElement() rather than directly accessing this predicate.

Import path

import semmle.code.cpp.commons.Dependency
predicate dependsOnTransitive(DependsSource src, Element dest)