Trait libafl_cc::CompilerWrapper[][src]

pub trait CompilerWrapper {
    fn from_args(&mut self, args: &[String]) -> Result<&mut Self, Error>;
fn add_arg(&mut self, arg: String) -> Result<&mut Self, Error>;
fn add_cc_arg(&mut self, arg: String) -> Result<&mut Self, Error>;
fn add_link_arg(&mut self, arg: String) -> Result<&mut Self, Error>;
fn command(&mut self) -> Result<Vec<String>, Error>;
fn is_linking(&self) -> bool; fn run(&mut self) -> Result<(), Error> { ... } }
Expand description

Wrap a compiler hijacking its arguments

Required methods

fn from_args(&mut self, args: &[String]) -> Result<&mut Self, Error>[src]

Set the wrapper arguments parsing a command line set of arguments

fn add_arg(&mut self, arg: String) -> Result<&mut Self, Error>[src]

Add a compiler argument

fn add_cc_arg(&mut self, arg: String) -> Result<&mut Self, Error>[src]

Add a compiler argument only when compiling

Add a compiler argument only when linking

fn command(&mut self) -> Result<Vec<String>, Error>[src]

Command to run the compiler

fn is_linking(&self) -> bool[src]

Get if in linking mode

Provided methods

fn run(&mut self) -> Result<(), Error>[src]

Run the compiler

Implementors

impl CompilerWrapper for ClangWrapper[src]

fn from_args<'a>(&'a mut self, args: &[String]) -> Result<&'a mut Self, Error>[src]

fn add_arg(&mut self, arg: String) -> Result<&mut Self, Error>[src]

fn add_cc_arg(&mut self, arg: String) -> Result<&mut Self, Error>[src]

fn command(&mut self) -> Result<Vec<String>, Error>[src]

fn is_linking(&self) -> bool[src]