[][src]Enum clang::PrintingPolicyFlag

#[repr(C)]pub enum PrintingPolicyFlag {
    SuppressSpecifiers,
    SuppressTagKeyword,
    IncludeTagDefinition,
    SuppressScope,
    SuppressUnwrittenScope,
    SuppressInitializers,
    PrintConstantArraySizeAsWritten,
    PrintAnonymousTagLocations,
    SuppressStrongLifetime,
    SuppressLifetimeQualifiers,
    SuppressTemplateArgsInCXXConstructors,
    UseBool,
    UseRestrict,
    UseAlignof,
    UseUnderscoreAlignof,
    UseVoidForZeroParams,
    UseTerseOutput,
    PolishForDeclaration,
    UseHalf,
    UseMsWchar,
    IncludeNewlines,
    UseMsvcFormatting,
    PrintConstantsAsWritten,
    SuppressImplicitBase,
    PrintFullyQualifiedName,
}

Flags for the printing policy.

Variants

SuppressSpecifiers

Whether to suppress printing specifiers for a given type or declaration.

SuppressTagKeyword

Whether to suppress printing the tag keyword.

IncludeTagDefinition

Whether to include the body of a tag definition.

SuppressScope

Whether to suppress printing of scope specifiers.

SuppressUnwrittenScope

Whether to suppress printing the parts of scope specifiers that don't need to be written.

SuppressInitializers

Whether to suppress printing of variable initializers.

PrintConstantArraySizeAsWritten

Whether to print the size of constant array expressions as written.

PrintAnonymousTagLocations

Whether to print the location of anonymous tags.

SuppressStrongLifetime

Whether to suppress printing the __strong lifetime qualifier in ARC.

SuppressLifetimeQualifiers

Whether to suppress printing lifetime qualifiers in ARC.

SuppressTemplateArgsInCXXConstructors

Whether to suppress printing template arguments in names of C++ constructors.

UseBool

Whether to print 'bool' rather than '_Bool'.

UseRestrict

Whether to print 'restrict' rather than '__restrict'

UseAlignof

Whether to print 'alignof' rather than '__alignof'

UseUnderscoreAlignof

Whether to print '_Alignof' rather than '__alignof'

UseVoidForZeroParams

Whether to print '(void)' rather then '()' for a function prototype with zero parameters.

UseTerseOutput

Whether to print terse output.

PolishForDeclaration

Whether to do certain refinements needed for producing a proper declaration tag.

UseHalf

Whether to print 'half' rather than '__fp16'

UseMsWchar

Whether to print the built-in wchar_t type as '__wchar_t'

IncludeNewlines

Whether to include newlines after statements.

UseMsvcFormatting

Whether to use whitespace and punctuation like MSVC does.

PrintConstantsAsWritten

Whether to print constant expressions as written.

SuppressImplicitBase

Whether to suppress printing the implicit 'self' or 'this' expressions.

PrintFullyQualifiedName

Whether to print the fully qualified name of function declarations.

Trait Implementations

impl Clone for PrintingPolicyFlag[src]

impl Copy for PrintingPolicyFlag[src]

impl Debug for PrintingPolicyFlag[src]

impl Eq for PrintingPolicyFlag[src]

impl Hash for PrintingPolicyFlag[src]

impl PartialEq<PrintingPolicyFlag> for PrintingPolicyFlag[src]

impl StructuralEq for PrintingPolicyFlag[src]

impl StructuralPartialEq for PrintingPolicyFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.