mrdocs::toString

toString overloads

Synopses

Declared in <mrdocs/Metadata/Attribute/AttributeKind.hpp>

Convert access specifier to its string form.

dom::String
toString(AccessKind kind) noexcept;
» more...

Convert an AttributeKind to its string representation.

dom::String
toString(AttributeKind kind) noexcept;
» more...

Convert an auto-kind to its spelling.

dom::String
toString(AutoKind kind) noexcept;
» more...

Convert a constexpr/consteval specifier kind to a string.

dom::String
toString(ConstexprKind kind) noexcept;
» more...

Convert an explicit kind to its string form.

dom::String
toString(ExplicitKind kind) noexcept;
» more...

Convert a FundamentalTypeKind to a string.

std::string_view
toString(FundamentalTypeKind kind) noexcept;
» more...

Convert a noexcept kind to its string form.

dom::String
toString(NoexceptKind kind) noexcept;
» more...

Convert a cv/ref qualifier kind to its string form.

dom::String
toString(QualifierKind kind) noexcept;
» more...

Convert a reference kind to its string representation.

dom::String
toString(ReferenceKind kind) noexcept;
» more...

Convert a storage class kind to its string form.

dom::String
toString(StorageClassKind kind) noexcept;
» more...

Convert the specialization kind to a readable string.

std::string_view
toString(TemplateSpecKind kind);
» more...

Convert a TypeKind to its string representation.

dom::String
toString(TypeKind kind) noexcept;
» more...

Convert the name to a human-readable string.

std::string
toString(Name const& N);
» more...

Convert a template argument to a human-readable string.

std::string
toString(TArg const& arg) noexcept;
» more...

Convert a described enumerator to string form.

template<typename Enum>
requires describe::has_describe_enumerators<Enum>::value
std::string
toString(Enum e);
» more...

Render a type to a human-readable string.

std::string
toString(
    Type const& T,
    std::string_view Name = "");
» more...

Convert ExplicitInfo to a string.

dom::String
toString(
    ExplicitInfo const& info,
    bool resolved = false,
    bool implicit = false);
» more...

Convert NoexceptInfo to a string.

dom::String
toString(
    NoexceptInfo const& info,
    bool resolved = false,
    bool implicit = false);
» more...

Return Value

  • String naming the keyword.
  • The string representation of the kind
  • String view naming the specialization category.
  • The textual form of the name.
  • Descriptive text for the argument.
  • The string form of the enumerator.
  • Text representation of the type.
  • The string representation of the explicit-specifier.
  • The string representation of the noexcept-specifier.

Parameters

NameDescription
eThe enumerator to convert.
TType to render.
NameOptional identifier to append.
infoThe explicit-specifier information.
resolvedIf true, the operand is not shown when the explicit-specifier is non-dependent.
implicitIf true, implicit explicit-specifiers are shown.