cppdependencyscanner

package
v0.0.0-...-3de72e3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cppdependencyscanner encapsulates a concrete include scanner. It can either encapsulate clang-scan-deps or goma's input processor depending on build configuration. If specified as an argument it will alternatively connect to a remote scanner service.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDepsScanTimeout is the error returned by the input processor
	// when it times out during the dependency scanning phase.
	ErrDepsScanTimeout = errors.New("cpp dependency scanner timed out")
)

Functions

This section is empty.

Types

type DepsScanner

type DepsScanner interface {
	//ProcessInputs receives a compile command, source file, and working directory and returns
	//a list of inputs, a boolean indicating whether deps cache was used, and an error if
	//exists.
	ProcessInputs(ctx context.Context, execID string, compileCommand []string, filename, directory string, cmdEnv []string) ([]string, bool, error)
	Close()
	Capabilities() *spb.CapabilitiesResponse
}

DepsScanner is an include scanner for c++ compiles.

func New

func New(ctx context.Context, executor executor, cacheDir, logDir string, cacheSizeMaxMb int, useDepsCache bool, depsScannerAddress, proxyServerAddress string) (DepsScanner, error)

New creates new DepsScanner.

Directories

Path Synopsis
Package depsscannerclient implements the cppdependencyscanner.DepsScanner with gRPC
Package depsscannerclient implements the cppdependencyscanner.DepsScanner with gRPC

Jump to

Keyboard shortcuts

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