msvcutil

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

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

Documentation

Overview

Package msvcutil provides utilities of msvc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseShowIncludes

func ParseShowIncludes(b []byte) ([]string, []byte)

ParseShowIncludes parses /showIncludes outputs, and returns a list of inputs and other outputs.

Types

type ScanDepsParams

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

	// Includes are include file specified by -include or /FI.
	Includes []string

	// Files are input files, such as sanitizer 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 files, dirs, sysroots and defines 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://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category?view=msvc-170 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