Struct clang::CompilationDatabase [] [src]

pub struct CompilationDatabase<'c> {
    // some fields omitted
}

The information used to compile the source files in a project.

Methods

impl<'c> CompilationDatabase<'c>
[src]

fn from_directory<D: AsRef<Path>>(_: &'c Clang, directory: D) -> Result<CompilationDatabase<'c>, ()>

Constructs a new CompilationDatabase from a directory containing a compile_commands.json file.

fn get_all_commands(&self) -> Vec<CompileCommand>

Returns all the compilation commands in this compilation database.

fn get_commands<F: AsRef<Path>>(&self, file: F) -> Vec<CompileCommand>

Returns all the compilation commands for the supplied source file in this compilation database.

Trait Implementations

impl<'c> Drop for CompilationDatabase<'c>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl<'c> Debug for CompilationDatabase<'c>
[src]

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

Formats the value using the given formatter.