codegen

package
v0.0.0-...-8023e94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) GenerateHeader

func (gen *Generator) GenerateHeader(tree cpp.Root, filename, clangFormatPath string) error

GenerateHeader generates the LLCPP bindings header, and writes it into the target filename.

func (*Generator) GenerateSource

func (gen *Generator) GenerateSource(tree cpp.Root, filename, clangFormatPath string) error

GenerateSource generates the LLCPP bindings source, and writes it into the target filename.

func (*Generator) GenerateTestBase

func (gen *Generator) GenerateTestBase(tree cpp.Root, filename, clangFormatPath string) error

GenerateTestBase generates the LLCPP bindings test base header, and writes it into the target filename.

type TypedArgument

type TypedArgument struct {
	ArgumentName  string
	ArgumentValue string
	ArgumentType  cpp.Type
	Pointer       bool
	Nullable      bool
	Access        bool
	MutableAccess bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL