Skip to content

AstSgNodeAttribute

Attribute storing an SgNode.

Synopsis

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

class [[visibility("default")]] AstSgNodeAttribute
    : public AstValueAttribute<SgNode*>

Description

A SgNode attribute may be used to "dynamically add" an SgNode field to an AST node.

Base Classes

Name Description
AstValueAttribute<SgNode*> IR node attribute that stores a copyable value.

Type Aliases

Name
Super

Member Functions

Name Description
AstSgNodeAttribute
AstSgNodeAttribute(); [constructor]
Constructors
attribute_class_name
virtual std::string attribute_class_name() const override; [virtual]
copy
virtual AstAttribute* copy() const override; [virtual]
getNode
SgNode* getNode();
setNode
void setNode(SgNode* node);

Created with MrDocs