clang

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverToolchains

func DiscoverToolchains(wantCxx bool, feedback func(string)) []*toolchain.Chain

Types

type Installation

type Installation struct {
	Ver
	CCompiler toolchain.Executable `json:"c-compiler"`
}

func DiscoverInstallations

func DiscoverInstallations(feedback func(string)) []*Installation

func (*Installation) PrintSummary

func (i *Installation) PrintSummary(w io.Writer)

type Ver

type Ver struct {
	FullVersion    string   `json:"full-version"`
	Version        string   `json:"version"`
	Target         string   `json:"target"`
	ThreadModel    string   `json:"thread-model"`
	CCIncludeDirs  []string `json:"cc-include-dirs"`
	CXXIncludeDirs []string `json:"cxx-include-dirs"`
	InstalledDir   string   `json:"installed-dir"`
}

Ver is a version info extracted from `clang -v` output

func QueryVersion

func QueryVersion(exe string) (*Ver, error)

Jump to

Keyboard shortcuts

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