librariesresolver

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputePriority

func ComputePriority(lib *libraries.Library, header, arch string) int

ComputePriority returns an integer value representing the priority of the library for the specified header and architecture. The higher the value, the higher the priority.

Types

type Cpp

type Cpp struct {
	// contains filtered or unexported fields
}

Cpp finds libraries made for the C++ language

func NewCppResolver

func NewCppResolver() *Cpp

NewCppResolver creates a new Cpp resolver

func (*Cpp) AlternativesFor

func (resolver *Cpp) AlternativesFor(header string) libraries.List

AlternativesFor returns all the libraries that provides the specified header

func (*Cpp) ResolveFor

func (resolver *Cpp) ResolveFor(header, architecture string) *libraries.Library

ResolveFor finds the most suitable library for the specified combination of header and architecture. If no libraries provides the requested header, nil is returned

func (*Cpp) ScanFromLibrariesManager

func (resolver *Cpp) ScanFromLibrariesManager(lm *librariesmanager.LibrariesManager) error

ScanFromLibrariesManager reads all librariers loaded in the LibrariesManager to find and cache all C++ headers for later retrieval

func (*Cpp) ScanIDEBuiltinLibraries

func (resolver *Cpp) ScanIDEBuiltinLibraries(lm *librariesmanager.LibrariesManager) error

ScanIDEBuiltinLibraries reads ide-builtin librariers loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.

func (*Cpp) ScanLibrary

func (resolver *Cpp) ScanLibrary(lib *libraries.Library) error

ScanLibrary reads a library to find and cache C++ headers for later retrieval

func (*Cpp) ScanPlatformLibraries

func (resolver *Cpp) ScanPlatformLibraries(lm *librariesmanager.LibrariesManager, platform *cores.PlatformRelease) error

ScanPlatformLibraries reads platform-bundled libraries for a specific platform loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.

func (*Cpp) ScanUserAndUnmanagedLibraries

func (resolver *Cpp) ScanUserAndUnmanagedLibraries(lm *librariesmanager.LibrariesManager) error

ScanUserAndUnmanagedLibraries reads user/unmanaged librariers loaded in the LibrariesManager to find and cache all C++ headers for later retrieval.

Jump to

Keyboard shortcuts

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