llcppg

package
v0.0.0-...-d0a659f Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const LLCPPG_CFG = "llcppg.cfg"
View Source
const LLCPPG_PUB = "llcppg.pub"
View Source
const LLCPPG_SIGFETCH = "llcppg.sigfetch.json"
View Source
const LLCPPG_SYMB = "llcppg.symb.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	OS   []string `json:"os"`
	Arch []string `json:"arch"`
}

type Config

type Config struct {
	Name           string      `json:"name"`
	CFlags         string      `json:"cflags"`
	Libs           string      `json:"libs"`
	Include        []string    `json:"include"`
	TrimPrefixes   []string    `json:"trimPrefixes"`
	Cplusplus      bool        `json:"cplusplus"`
	Deps           []string    `json:"deps"`
	KeepUnderScore bool        `json:"keepUnderScore"`
	Impl           []ImplFiles `json:"impl"`
	Mix            bool        `json:"mix"`
}

Config represents a configuration for the llcppg tool.

func NewDefaultConfig

func NewDefaultConfig() *Config

type FileEntry

type FileEntry struct {
	Path     string
	IncPath  string
	IsSys    bool
	FileType FileType
	Doc      *ast.File
}

type FileType

type FileType uint
const (
	Inter FileType = iota + 1
	Impl
	Third
)

type ImplFiles

type ImplFiles struct {
	Files []string  `json:"files"`
	Cond  Condition `json:"cond"`
}

func NewImplFiles

func NewImplFiles() *ImplFiles

type SymbolInfo

type SymbolInfo struct {
	Mangle string `json:"mangle"` // C++ Symbol
	CPP    string `json:"c++"`    // C++ function name
	Go     string `json:"go"`     // Go function name
}

Jump to

Keyboard shortcuts

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