gen

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(genCfg *Config) ([]byte, error)

func ExpandName

func ExpandName(name string, dir string, cfgKey llcppCfgKey) string

func ExpandString

func ExpandString(str string, dir string) string

func GetOut

func GetOut(cmd *exec.Cmd, dir string) (string, error)

func NewExecCommand

func NewExecCommand(cmdStr string, args ...string) *exec.Cmd

func NormalizePackageName

func NormalizePackageName(name string) string

Types

type CflagEntry

type CflagEntry struct {
	Include         string
	ObjFiles        []*ObjFile
	InvalidObjFiles []*ObjFile
}

func (*CflagEntry) IsEmpty

func (c *CflagEntry) IsEmpty() bool

func (*CflagEntry) String

func (c *CflagEntry) String() string

type Config

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

func NewConfig

func NewConfig(name string, flag FlagMode, exts, deps, excludeSubdirs []string) *Config

type FlagMode

type FlagMode int
const (
	WithTab FlagMode = 1 << iota
	WithCpp
)

type IncludeList

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

func NewIncludeList

func NewIncludeList() *IncludeList

func (*IncludeList) AddCflagEntry

func (p *IncludeList) AddCflagEntry(index int, entry *CflagEntry)

func (*IncludeList) AddIncludeForObjFile

func (p *IncludeList) AddIncludeForObjFile(objFile *ObjFile, index int)

type ObjFile

type ObjFile struct {
	OFile string
	HFile string
	Deps  []string
}

func NewObjFile

func NewObjFile(oFile, hFile string) *ObjFile

func NewObjFileString

func NewObjFileString(str string) *ObjFile

func (*ObjFile) IsEqual

func (p *ObjFile) IsEqual(o *ObjFile) bool

func (*ObjFile) String

func (p *ObjFile) String() string

Jump to

Keyboard shortcuts

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