Skip to content

AstAttribute::attribute_class_name

Attribute class name.

Synopsis

Declared in <src/midend/astProcessing/AstAttributeMechanism.h>

virtual
std::string
attribute_class_name() const;

Description

Returns the name of the dynamic type. All subclasses must implement this in order to return the correct type name, although many don't. If a subclass fails to implement this then it will return an incorrect class name.

It would be nice if this could be pure virtual, but unfortunately ROSETTA‐generated code fails to compile because it generates an instantiation of this interface (whether or not that code is ever executed is unknown). [Robb Matzke 2015‐11‐10]

Created with MrDocs