Enum clang::PrintingPolicyFlag
source · [−]#[repr(C)]
pub enum PrintingPolicyFlag {
Show 25 variants
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,
}
Expand description
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
sourceimpl Clone for PrintingPolicyFlag
impl Clone for PrintingPolicyFlag
sourcefn clone(&self) -> PrintingPolicyFlag
fn clone(&self) -> PrintingPolicyFlag
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrintingPolicyFlag
impl Debug for PrintingPolicyFlag
sourceimpl Hash for PrintingPolicyFlag
impl Hash for PrintingPolicyFlag
impl Copy for PrintingPolicyFlag
impl Eq for PrintingPolicyFlag
impl StructuralEq for PrintingPolicyFlag
impl StructuralPartialEq for PrintingPolicyFlag
Auto Trait Implementations
impl RefUnwindSafe for PrintingPolicyFlag
impl Send for PrintingPolicyFlag
impl Sync for PrintingPolicyFlag
impl Unpin for PrintingPolicyFlag
impl UnwindSafe for PrintingPolicyFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more