AstAttribute::constructor
Virtual default constructor.
Synopsis
Declared in <src/midend/astProcessing/AstAttributeMechanism.h>
virtual
AstAttribute*
constructor() const;
Description
Default‐constructs a new object on the heap and returns its pointer. All subclasses must implement this in order to instantiate the correct dynamic type, although many don't. Invoking this constructor in a subclass that fails to implement it will return an attribute that's an incorrect dynamic type.
It would be nice if we could make this 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].
Return Value
Base class for all IR node attribute values.
Created with MrDocs