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§
Sourcefn generate(
&self,
config: &Config,
) -> Result<Vec<CompileCommand>, CompileDbError>
fn generate( &self, config: &Config, ) -> Result<Vec<CompileCommand>, CompileDbError>
Generate compilation database from build log
Sourcefn write_to_file(
&self,
commands: &[CompileCommand],
path: &Path,
) -> Result<(), CompileDbError>
fn write_to_file( &self, commands: &[CompileCommand], path: &Path, ) -> Result<(), CompileDbError>
Write compilation database to file