mrdocs::VariableSymbol

A variable.

Synopsis

Declared in <mrdocs/Metadata/Symbol/Variable.hpp>

struct VariableSymbol final
    : SymbolCommonBase<SymbolKind::Variable>

Base Classes

Name

Description

SymbolCommonBase<SymbolKind::Variable>

Base class for providing variant discriminator functions.

Member Functions

Name

Description

VariableSymbol [constructor]

Construct from SymbolID

operator<=>

Three‐way comparison operators

Data Members

Name

Description

Attributes

BitfieldWidth

The width of the bitfield

HasNoUniqueAddress

Initializer

The default member initializer, if any.

IsBitfield

Whether the field is a bitfield

IsConstexpr

IsConstinit

IsDeprecated

IsInline

IsMaybeUnused

IsMutable

Whether the field is declared mutable

IsRecordField

IsThreadLocal

IsVariant

Whether the field is a variant member

StorageClass

Template

The template information, if any.

Type

The type of the variable

Static Data Members

Name

kind_id

Non-Member Functions

Name

Description

merge

Merges two Symbol objects.

Description

This includes variables at namespace or record scope.

Created with MrDocs