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

Module Location

Provides classes and predicates for locations in the source code.

Import path

import semmle.code.cpp.Location

Imports

Element

Provides the Element class, which is the base class for all classes representing C or C++ program elements.

File

Provides classes representing files and folders.

Classes

Locatable

A C/C++ element that has a location in a file

Location

A location of a C/C++ artifact.

UnknownDefaultLocation

A dummy location which is used when something doesn’t have a location in the source code but needs to have a Location associated with it.

UnknownExprLocation

A dummy location which is used when an expression doesn’t have a location in the source code but needs to have a Location associated with it.

UnknownLocation

A dummy location which is used when something doesn’t have a location in the source code but needs to have a Location associated with it. There may be several distinct kinds of unknown locations. For example: one for expressions, one for statements and one for other program elements.

UnknownStmtLocation

A dummy location which is used when a statement doesn’t have a location in the source code but needs to have a Location associated with it.