depgraph

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

depgraph analyzes a Makefile dependency graph

Intended to process Rocq dependencies generated by `rocq dep`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RocqDeps

func RocqDeps(deps *Graph, args []string) []string

Get the dependencies of files in args.

Args can be a list of .v or .vo files: this function always uses the .vo files for dependencies

Types

type Dep

type Dep struct {
	Target string
	Source string
}

type DepChain

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

func (DepChain) Source

func (c DepChain) Source() string

func (DepChain) Sources

func (c DepChain) Sources() []string

type Graph

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

func Parse

func Parse(r io.Reader) (*Graph, error)

Parse dependencies from a .d file

func ParseRocqdep

func ParseRocqdep(rocqdepFileName string) (*Graph, error)

func (*Graph) Deps

func (g *Graph) Deps(targets []string) []DepChain

Deps gets all transitive dependencies of targets

func (*Graph) FilterNodes

func (g *Graph) FilterNodes(keep func(string) bool)

func (*Graph) Len

func (g *Graph) Len() int

Jump to

Keyboard shortcuts

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