mrdocs::VariableSymbol

A variable.

Synopsis

Description

This includes variables at namespace or record scope.

Base Classes

Name

Description

SymbolCommonBase<SymbolKind::Variable>

Base class for providing variant discriminator functions.

Member Functions

Name

Description

VariableSymbol [constructor]

Create a variable symbol bound to an ID.

operator<=>

Compare variables by type, flags, and initializer.

Data Members

Name

Description

BitfieldWidth

The width of the bitfield

Initializer

The default member initializer, if any.

IsBitfield

Whether the field is a bitfield

IsConstexpr

Whether the variable is constexpr.

IsConstinit

Whether the variable is constinit.

IsInline

Whether the variable is declared inline.

IsMutable

Whether the field is declared mutable

IsRecordField

True if this variable is a data member of a record.

IsThreadLocal

Whether the variable is thread_local.

IsVariant

Whether the field is a variant member

StorageClass

Storage class specifier applied to the variable.

Template

The template information, if any.

Type

The type of the variable

Static Data Members

Name

kind_id

Non-Member Functions

Name

Description

canMerge

Check whether two symbols may be merged.

getPrimaryLocation

Determine a location to use when none is explicitly chosen.

Created with MrDocs