Struct clang::ParseOptions [] [src]

pub struct ParseOptions {
    pub cached_completion_results: bool,
    pub detailed_preprocessing_record: bool,
    pub briefs_in_completion_results: bool,
    pub incomplete: bool,
    pub skipped_function_bodies: bool,
}

A set of options that determines how a source file is parsed into a translation unit.

Fields

cached_completion_results: bool

Indicates whether certain code completion results will be cached when the translation unit is reparsed.

This option increases the time it takes to reparse the translation unit but improves code completion performance.

detailed_preprocessing_record: bool

Indicates whether a detailed preprocessing record will be constructed which tracks all macro definitions and instantiations.

briefs_in_completion_results: bool

Indicates whether documentation comment briefs will be included in code completion results.

incomplete: bool

Indicates whether the translation unit will be considered incomplete.

This option suppresses certain semantic analyses and is typically used when parsing headers with the intent of creating a precompiled header.

skipped_function_bodies: bool

Indicates whether function and method bodies will be skipped.

Trait Implementations

impl Default for ParseOptions
[src]

fn default() -> ParseOptions

Returns the "default value" for a type. Read more

impl Hash for ParseOptions
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for ParseOptions
[src]

impl PartialEq for ParseOptions
[src]

fn eq(&self, __arg_0: &ParseOptions) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ParseOptions) -> bool

This method tests for !=.

impl Debug for ParseOptions
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ParseOptions
[src]

fn clone(&self) -> ParseOptions

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ParseOptions
[src]

impl From<CXTranslationUnit_Flags> for ParseOptions
[src]

fn from(flags: CXTranslationUnit_Flags) -> ParseOptions

Performs the conversion.

impl Into<CXTranslationUnit_Flags> for ParseOptions
[src]

fn into(self) -> CXTranslationUnit_Flags

Performs the conversion.