parse

package
v0.0.0-...-3a66c49 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHeaderFile

func ParseHeaderFile(files []string, prefixes []string, cflags []string, isCpp bool, isTemp bool) (map[string]*SymbolInfo, error)

Types

type SymbolInfo

type SymbolInfo struct {
	GoName    string
	ProtoName string
}

type SymbolProcessor

type SymbolProcessor struct {
	Files      []string
	Prefixes   []string
	SymbolMap  map[string]*SymbolInfo
	NameCounts map[string]int
	// contains filtered or unexported fields
}

func NewSymbolProcessor

func NewSymbolProcessor(Files []string, Prefixes []string) *SymbolProcessor

func (*SymbolProcessor) AddSuffix

func (p *SymbolProcessor) AddSuffix(name string) string

func (*SymbolProcessor) GenMethodName

func (p *SymbolProcessor) GenMethodName(class, name string, isDestructor bool, isPointer bool) string

Jump to

Keyboard shortcuts

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