clang

package
v0.0.0-...-36dc3b0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluatePreprocessedFile

func EvaluatePreprocessedFile(buildRoot string, command *CompilerCommand) ([]byte, error)

func ExtractOption

func ExtractOption(args []string, position int, names []string, prefixes []string) (int, *string)

Types

type CompilerCommand

type CompilerCommand struct {
	Compiler   string
	Arguments  []string
	OutputPath string
	InputPath  string
}

func ParseClangCommandString

func ParseClangCommandString(commands string) (*CompilerCommand, error)

type Database

type Database = []DatabaseEntry

type DatabaseEntry

type DatabaseEntry struct {
	Directory string `json:"directory"`
	Command   string `json:"command"`
	File      string `json:"file"`
}

func ExtractCompilationTarget

func ExtractCompilationTarget(databaseRootPath string, target string) (*DatabaseEntry, error)

type TidyInvocation

type TidyInvocation struct {
	ExportFile   *string
	DatabaseRoot string
	TargetPath   string
}

func ParseTidyCommand

func ParseTidyCommand(args []string) (*TidyInvocation, error)

Jump to

Keyboard shortcuts

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