Documentation
¶
Index ¶
- func ExprToProgramC(expr, format string, opts []Option) string
- func ExprToProgramSi(expr, format string, opts []Option) string
- func JoinDeclares(opts []Option) string
- func JoinHeaders(opts []Option) string
- func OverrideBasename(def string, opts ...Option) string
- type BinaryRunError
- type ClangRunError
- type Compiler
- type GenerateError
- type Option
- type OptionBasename
- type OptionDeclare
- type OptionHeader
- type ParseError
- type Suite
- func (suite *Suite) EqualExprC(expr, format, expected string, opts ...Option)
- func (suite *Suite) EqualExprSi(expr, format, expected string, opts ...Option)
- func (suite *Suite) EqualLL(m *ir.Module, expected string, opts ...Option)
- func (suite *Suite) EqualProgramC(src, expected string, opts ...Option)
- func (suite *Suite) EqualProgramSi(src, expected string, opts ...Option)
- func (suite *Suite) ErrorClangExprC(expr, contains string, opts ...Option)
- func (suite *Suite) ErrorClangProgramC(src, contains string, opts ...Option)
- func (suite *Suite) ErrorGenerateExprSi(expr, contains string, opts ...Option)
- func (suite *Suite) ErrorGenerateProgramSi(src, contains string, opts ...Option)
- func (suite *Suite) GetLL(src string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExprToProgramC ¶
func ExprToProgramSi ¶
func JoinDeclares ¶
func JoinHeaders ¶
func OverrideBasename ¶
Types ¶
type BinaryRunError ¶
func NewBinaryRunError ¶
func NewBinaryRunError(err error, source string) *BinaryRunError
func (*BinaryRunError) Error ¶
func (bre *BinaryRunError) Error() string
type ClangRunError ¶
func NewClangRunError ¶
func NewClangRunError(err error, source, result string) *ClangRunError
func (*ClangRunError) Error ¶
func (cre *ClangRunError) Error() string
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler() *Compiler
func (*Compiler) RunProgramC ¶
func (*Compiler) RunProgramLL ¶
type GenerateError ¶
func NewGenerateError ¶
func NewGenerateError(err error, source string) *GenerateError
func (*GenerateError) Error ¶
func (te *GenerateError) Error() string
type OptionBasename ¶
type OptionBasename struct{ File string }
func Basename ¶
func Basename(file string) *OptionBasename
func (*OptionBasename) Option ¶
func (o *OptionBasename) Option()
type OptionDeclare ¶
type OptionDeclare struct{ Declare []string }
func Declare ¶
func Declare(declare string) *OptionDeclare
func DeclareMalloc ¶
func DeclareMalloc() *OptionDeclare
func (*OptionDeclare) Option ¶
func (o *OptionDeclare) Option()
type OptionHeader ¶
type OptionHeader struct{ Header string }
func Header ¶
func Header(header string) *OptionHeader
func (*OptionHeader) Option ¶
func (o *OptionHeader) Option()
type ParseError ¶
func NewParseError ¶
func NewParseError(err error, source string) *ParseError
func (*ParseError) Error ¶
func (pe *ParseError) Error() string
type Suite ¶
func (*Suite) EqualExprC ¶
func (*Suite) EqualExprSi ¶
func (*Suite) EqualProgramC ¶
func (*Suite) EqualProgramSi ¶
func (*Suite) ErrorClangExprC ¶
func (*Suite) ErrorClangProgramC ¶
func (*Suite) ErrorGenerateExprSi ¶
func (*Suite) ErrorGenerateProgramSi ¶
Click to show internal directories.
Click to hide internal directories.