Struct clang::Index
[−]
[src]
pub struct Index<'c> { /* fields omitted */ }
A collection of translation units.
Methods
impl<'c> Index<'c>
[src]
fn new(_: &'c Clang, exclude: bool, diagnostics: bool) -> Index<'c>
[src]
Constructs a new Index
.
exclude
determines whether declarations from precompiled headers are excluded and
diagnostics
determines whether diagnostics are printed while parsing source files.
fn parser<F: Into<PathBuf>>(&'c self, f: F) -> Parser<'c>
[src]
Returns a parser for the supplied file.
fn get_thread_options(&self) -> ThreadOptions
[src]
Returns the thread options for this index.
fn set_thread_options(&mut self, options: ThreadOptions)
[src]
Sets the thread options for this index.