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.