Info for preprocessor macros.

Synopsis

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

struct MacroSymbol final
    : SymbolCommonBase<SymbolKind::Macro>

Description

Covers both object‐like and function‐like macros.

Base Classes

Name

Description

SymbolCommonBase<SymbolKind::Macro>

Base class for providing variant discriminator functions.

Member Functions

Name

Description

MacroSymbol [constructor]

Create a macro symbol bound to an ID.

Static Member Functions

Data Members

Name

Description

IsFunctionLike

Whether this is a function‐like macro.

IsVariadic

Whether the macro takes a variadic argument list.

Parameters

The names of the macro's parameters.

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