Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Converter
 - func (p *Converter) ConvDecl(file string, decl ast.Decl) (goName, goFile string, err error)
 - func (p *Converter) ConvEnumItem(decl *ast.EnumTypeDecl, item *ast.EnumItem) (goName string, err error)
 - func (p *Converter) ConvMacro(file string, macro *ast.Macro) (goName, goFile string, err error)
 - func (p *Converter) ConvTagExpr(cname string) string
 - func (p *Converter) IsPublic(cname string) bool
 - func (p *Converter) Lookup(name string) (locFile string, ok bool)
 
- type HeaderFile
 - type NameMethod
 - type ThirdTypeLoc
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
	PkgName string
	FileMap map[string]*llconfig.FileInfo
	ConvSym func(name *ast.Object, mangleName string) (goName string, err error)
	// CfgFile   string // llcppg.cfg
	Pubs           map[string]string
	TrimPrefixes   []string
	KeepUnderScore bool
	// contains filtered or unexported fields
}
    func (*Converter) ConvEnumItem ¶
func (*Converter) ConvTagExpr ¶
type HeaderFile ¶
func NewHeaderFile ¶
func NewHeaderFile(file string, fileType llcppg.FileType) *HeaderFile
func (*HeaderFile) InCurPkg ¶
func (p *HeaderFile) InCurPkg() bool
func (*HeaderFile) ToGoFileName ¶
func (p *HeaderFile) ToGoFileName(pkgName string) string
Note:third hfile should not set to gogen.Package
type NameMethod ¶
type ThirdTypeLoc ¶
type ThirdTypeLoc struct {
	// contains filtered or unexported fields
}
     Click to show internal directories. 
   Click to hide internal directories.