AstAttributeMechanism::~AstAttributeMechanism
Destructor.
Synopsis
Declared in <src/midend/astProcessing/AstAttributeMechanism.h>
Description
Destroying the attribute container should cause unused attributes to be destroyed. If an attribute implements the AstAttribute::CONTAINER_OWNERSHIP policy then the container explicitly deletes the attribute, otherwise it is up to the attribute class's designer to implement a deletion policy that prevents leaks.
New semantics: The original implementation did not delete attributes when the container was destroyed, although it had commentedâout code to do so.
Created with MrDocs