Documentation ¶
Index ¶
- type Config
- type FidlGenerator
- func (gen *FidlGenerator) GenerateDecoderEncoderHeader(wr io.Writer, tree cpp.Root) error
- func (gen *FidlGenerator) GenerateDecoderEncoderSource(wr io.Writer, tree cpp.Root) error
- func (gen FidlGenerator) GenerateDecoderEncoders(fidl fidl.Root, tree cpp.Root, config *Config, clangFormatPath string) error
- func (gen FidlGenerator) GenerateFidl(fidl fidl.Root, config *Config, clangFormatPath string) error
- func (gen FidlGenerator) GenerateFuzzer(fidl fidl.Root, tree cpp.Root, config *Config, clangFormatPath string) error
- func (gen *FidlGenerator) GenerateHeader(wr io.Writer, tree cpp.Root) error
- func (gen *FidlGenerator) GenerateSource(wr io.Writer, tree cpp.Root) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The base file name for files generated by this generator. OutputBase string // The directory to which C and C++ includes should be relative. IncludeBase string // The path suffix after the library path when referencing includes. IncludeStem string }
Config is the configuration data passed to the libfuzzer generator.
type FidlGenerator ¶
type FidlGenerator struct {
// contains filtered or unexported fields
}
func NewFidlGenerator ¶
func NewFidlGenerator() *FidlGenerator
func (*FidlGenerator) GenerateDecoderEncoderHeader ¶
GenerateDecoderEncoderHeader generates the C++ libfuzzer traits for FIDL types.
func (*FidlGenerator) GenerateDecoderEncoderSource ¶
GenerateDecoderEncoderSource generates the C++ fuzzer implementation protocols in the FIDL file.
func (FidlGenerator) GenerateDecoderEncoders ¶
func (FidlGenerator) GenerateFidl ¶
GenerateFidl generates all files required for the C++ libfuzzer code.
func (FidlGenerator) GenerateFuzzer ¶
func (*FidlGenerator) GenerateHeader ¶
GenerateHeader generates the C++ libfuzzer traits for FIDL types.
func (*FidlGenerator) GenerateSource ¶
GenerateSource generates the C++ fuzzer implementation protocols in the FIDL file.
Click to show internal directories.
Click to hide internal directories.