CodeQL library for C/C++
codeql/cpp-all 0.12.10 (changelog, source)

Class ElementBase

A C/C++ element with no member predicates other than toString. Not for general use. This class does not define a location, so classes wanting to change their location without affecting other classes can extend ElementBase instead of Element to create a new rootdef for getURL, getLocation, or hasLocationInfo.

Import path

import cpp

Direct supertypes

Known direct subtypes



Gets the name of a primary CodeQL class to which this element belongs.


Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.


Gets a textual representation of this element.