mrdocs::Attribute

A C++ attribute attached to a symbol.

Synopsis

struct Attribute;

Description

This base class stores the information common to every attribute: the kind, the spelling name, and the raw balanced‐token sequence written between the parentheses. Derived classes add the evaluated arguments for the attributes that take them.

Member Functions

Name

Description

asAttribute

asAttribute overloads

Data Members

Name

Description

Kind

The kind of attribute.

Name

The attribute name as it appears in the standard form.

balancedTokens

The attribute arguments as a balanced‐token sequence.

Protected Member Functions

Name

Description

Attribute [constructor]

Construct with a concrete attribute kind.

~Attribute [destructor] [virtual]

Virtual destructor for polymorphic base.

Derived Classes

Name

Description

AttributeCommonBase

CRTP base that ties a concrete attribute to a fixed AttributeKind.

Created with MrDocs