Struct clang::Parser [] [src]

pub struct Parser<'tu> { /* fields omitted */ }

Parses translation units.

Methods

impl<'tu> Parser<'tu>
[src]

[src]

Sets 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.

[src]

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

[src]

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

[src]

Sets 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.

[src]

Sets whether function and method bodies will be skipped.

impl<'tu> Parser<'tu>
[src]

[src]

Sets the compiler arguments to provide to libclang.

Any compiler argument that could be supplied to clang may be supplied to this function. However, the following arguments are ignored:

  • -c
  • -emit-ast
  • -fsyntax-only
  • -o and the following <output>

[src]

Sets the unsaved files to use.

[src]

Parses a translation unit.

Failures

  • an error occurs while deserializing an AST file
  • libclang crashes
  • an unknown error occurs

Trait Implementations

impl<'tu> Clone for Parser<'tu>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'tu> Debug for Parser<'tu>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'tu> !Send for Parser<'tu>

impl<'tu> !Sync for Parser<'tu>