depgraph

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

depgraph analyzes Rocq Makefile dependencies

Processes files 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

func RocqTargets added in v0.3.0

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

Get the reverse dependencies of files in args (the files that depend on any of args)

Args can be a list of .v or .vo files: this function searches for reverse dependencies starting from both the .v and .vo files for each argument

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

func (DepChain) Targets added in v0.3.0

func (c DepChain) Targets() []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

func (*Graph) Targets added in v0.3.0

func (g *Graph) Targets(sources []string) []string

Targets returns all nodes that transitively depend on any of the sources.

Jump to

Keyboard shortcuts

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