gccutil

package
v0.0.0-...-b0621e5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package gccutil provides utilities of gcc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanDepsParams

type ScanDepsParams struct {
	// Sources are source files.
	Sources []string

	// Includes are include files by -include.
	Includes []string

	// Files are input files, such as sanitaizer ignore list.
	Files []string

	// Dirs are include directories.
	Dirs []string

	// Frameworks are framework directories.
	Frameworks []string

	// Sysroots are sysroot directories and toolchain root directories.
	Sysroots []string

	// Defines are defined macros.
	Defines map[string]string
}

ScanDepsParams holds parameters used for scandeps.

func ExtractScanDepsParams

func ExtractScanDepsParams(ctx context.Context, args, env []string) ScanDepsParams

ExtractScanDepsParams parses args and returns ScanDepsParams for scandeps. It only parses major command line flags used in chromium. full set of command line flags for include dirs can be found in https://clang.llvm.org/docs/ClangCommandLineReference.html#include-path-management

Jump to

Keyboard shortcuts

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