AstAttributeMechanism::add¶
Insert a new value if the attribute doesn't already exist.
Synopsis¶
Declared in <src/midend/astProcessing/AstAttributeMechanism.h>
bool
add(
std::string const& name,
AstAttribute* value); Description¶
Tests whether an attribute with the specified name exists and if not, invokes set. See set for details about ownership of the new attribute. Returns true if the value was inserted. An uninserted value is deleted according to its ownership policy.
Parameters¶
| Name | Description |
|---|---|
| value | Base class for all IR node attribute values. |
Created with MrDocs