clangcl

package
v0.0.0-...-223af15 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package clangcl performs include processing given a valid clangCl action.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Preprocessor

type Preprocessor struct {
	*cppcompile.Preprocessor
	// contains filtered or unexported fields
}

Preprocessor is the preprocessor of clang-cl compile actions.

func (*Preprocessor) AppendVirtualInput

func (p *Preprocessor) AppendVirtualInput(res []*command.VirtualInput, flag, path string) []*command.VirtualInput

AppendVirtualInput appends a virtual input to res. If the flag="-winsysroot" the content of the path is processed and Win SDK and VC toolchain paths are added to virtual inputs.

func (*Preprocessor) ComputeSpec

func (p *Preprocessor) ComputeSpec() error

ComputeSpec computes cpp header dependencies.

func (*Preprocessor) IsVirtualInput

func (p *Preprocessor) IsVirtualInput(flag string) bool

IsVirtualInput returns true if the flag specifies a virtual input to be added to InputSpec.

func (*Preprocessor) ParseFlags

func (p *Preprocessor) ParseFlags() error

ParseFlags parses the commands flags and populates the ActionSpec object with inferred information.

Jump to

Keyboard shortcuts

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