clang::mrdocs::makeChar

Apply the "char" specifier to the type

Synopsis

Declared in <mrdocs/Metadata/Type.hpp>

bool
makeChar(FundamentalTypeKind& kind) noexcept;

Description

If applying the "char" specifier to a type that might have been declared only with "signed/unsigned" or "short/long" specifiers, the function changes the type and returns true.

For instance, applying "char" to FundamentalTypeKind::Int ("int", which could be declared as "signed") results in FundamentalTypeKind::SignedChar ("signed char").

Return Value

Whether the operation was successful

Parameters

Name

Description

kind [in]

The type to modify

Created with MrDocs