clang

package
v0.0.0-...-3255704 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(llvmRoot string, api *gen.API) error

Cmd executes a generic go-clang-generate command.

func WriteEmbedFile

func WriteEmbedFile(dstDir, embedDir string) error

WriteEmbedFile reads embedPath file from embedClang and writes to dstDir.

The embedPath must be a full path from the embed root directory.

Types

type Version

type Version struct {
	Major    int
	Minor    int
	Subminor int
}

Version represents a Clang version.

func ParseVersion

func ParseVersion(s []byte) *Version

ParseVersion parses Version from s.

func (Version) String

func (v Version) String() string

String returns a string representation of the Version.

func (Version) StringMinor

func (v Version) StringMinor() string

StringMinor returns a string representation of the minor Version.

Directories

Path Synopsis
_embed

Jump to

Keyboard shortcuts

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