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

Indirect supertypes

Known direct subtypes



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


DEPRECATED: use getAPrimaryQlClass instead.


Gets a textual representation of this element.