compdb

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package compdb provides compilation database parser. The schema is defined in: https://clang.llvm.org/docs/JSONCompilationDatabase.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// The working directory of the compilation.
	Directory string `json:"directory"`

	// The main translation unit source processed by this compilation step.
	File string `json:"file"`

	// The compile command executed.
	Command string `json:"command"`

	// The compile command executed as list of strings.
	Arguments []string `json:"arguments"`

	// The name of the output created by this compilation step.
	Output string `json:"output"`
}

Command specifies one way a translation unit is compiled in the project.

func Parse

func Parse(file io.Reader) ([]Command, error)

Parse parses the compilation database.

Jump to

Keyboard shortcuts

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