clangtool

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeIncludes

func ComposeIncludes(files []string, outfile string) error

ComposeIncludes create Include list #include <file1.h> #include <file2.h>

func GetIncludePaths

func GetIncludePaths(isCpp bool) []string

func ParseClangIncOutput

func ParseClangIncOutput(output string) []string

func ParseSystemPath

func ParseSystemPath(output string) ([]string, error)

func Preprocess

func Preprocess(cfg *PreprocessConfig) error

func WithSysRoot

func WithSysRoot(args []string) []string

Types

type PreprocessConfig

type PreprocessConfig struct {
	File    string
	IsCpp   bool
	Args    []string
	OutFile string
}

Jump to

Keyboard shortcuts

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