Skip to content

AstAttributeMechanism::getAttributeIdentifiers

List of stored attribute names.

Synopsis

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

AttributeIdentifiers
getAttributeIdentifiers() const;

Description

Returns the set of names for attributes stored in this container. This can be used to iterate over the attributes, as in:

Or using the SgNode API for attributes:

New semantics: The old implementation also returned some names that had no attribute values. For instance, if operator[] was invoked for an attribute that didn't exist then that name was also returned.

Return Value

Set of attribute names.

Created with MrDocs