CodeQL library for C/C++
Search

Module ExternalDependencies

Support for ExternalDependencies.ql query.

This performs a “technology inventory” by associating each source file with the libraries it uses.

Import path

import Metrics.Dependencies.ExternalDependencies

Imports

Dependency
cpp

Provides classes and predicates for working with C/C++ code.

Predicates

encodedDependencies

Generate the table of dependencies for the query (with some packages that basically all projects depend on excluded).

libDependencies

Holds if there are num dependencies from sourceFile on destLib (and sourceFile is not in destLib).

Classes

Library

A library that can have dependencies on it.

LibraryElement

An Element that is to be considered a Library.