internal

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegexCompile string = `^.*-?(gcc|clang|cc|g\+\+|c\+\+|clang\+\+)-?.*(\.exe)?`

	RegexFile string = `^.*\s+-c.*\s(?:"|')?(.*\.(?:c|cpp|cc|cxx|c\+\+|s|m|mm|cu))(?:"|')?(\s|$)`
)
View Source
var StatusCode int = 0

Functions

func ConvertPath added in v1.3.7

func ConvertPath(path string) string

func FileExist

func FileExist(filename string) bool

func Generate

func Generate()

func GetBinFullPath

func GetBinFullPath(name string) string

func IsAbsPath added in v1.3.1

func IsAbsPath(path string) bool

func MakeWrap

func MakeWrap(args []string)

func Parse

func Parse(buildLog []string)

func TransferPrintScanner added in v1.3.6

func TransferPrintScanner(in io.ReadCloser)

func WriteJSON

func WriteJSON(filename string, cmdCnt int, data *[]Command)

Types

type Command added in v1.3.1

type Command struct {
	Directory string   `json:"directory"`
	Command   string   `json:"command,omitempty"`
	Arguments []string `json:"arguments,omitempty"`
	File      string   `json:"file"`
}

type Config

type Config struct {
	InputFile    string
	OutputFile   string
	BuildDir     string
	Exclude      string
	Macros       string
	RegexCompile string
	RegexFile    string
	CommandStyle bool
	FullPath     bool
	NoBuild      bool
	NoStrict     bool
}
var ParseConfig Config

Jump to

Keyboard shortcuts

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