llcppgcfg

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandName

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

func ExpandString added in v0.3.0

func ExpandString(str string, dir string) string

func GenCfg

func GenCfg(genCfg *GenConfig) (*bytes.Buffer, error)

func GetOut added in v0.3.0

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

func NewExecCommand added in v0.3.0

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

func NewLLCppgConfig

func NewLLCppgConfig(name string, flag FlagMode) *llcppg.Config

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 FlagMode

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

type GenConfig

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

func NewGenConfig

func NewGenConfig(name string, flag FlagMode, exts, deps, excludeSubdirs []string) *GenConfig

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