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.

LocationDefault

A location of an element. Not used for expressions or statements, which instead use LocationExpr and LocationStmt respectively.

LocationExpr

A location of an expression.

LocationStmt

A location of a statement.

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.