CompileDbGenerator

Trait CompileDbGenerator 

Source
pub trait CompileDbGenerator {
    // Required methods
    fn generate(
        &self,
        config: &Config,
    ) -> Result<Vec<CompileCommand>, CompileDbError>;
    fn write_to_file(
        &self,
        commands: &[CompileCommand],
        path: &Path,
    ) -> Result<(), CompileDbError>;
}
Expand description

Main interface for generating compilation database

Required Methods§

Source

fn generate( &self, config: &Config, ) -> Result<Vec<CompileCommand>, CompileDbError>

Generate compilation database from build log

Source

fn write_to_file( &self, commands: &[CompileCommand], path: &Path, ) -> Result<(), CompileDbError>

Write compilation database to file

Implementors§