Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Directory string `json:"directory"` Command string `json:"command,omitempty"` Arguments []string `json:"arguments,omitempty"` File string `json:"file"` }
Command keeps track of a single run of a compile command
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database keeps track of all the compile commands run by the builder
func LoadDatabase ¶
LoadDatabase reads a compilation database from a file
func NewDatabase ¶
func NewDatabase(filename *paths.Path) *Database
NewDatabase creates an empty CompilationDatabase
func (*Database) SaveToFile ¶
func (db *Database) SaveToFile()
SaveToFile save the CompilationDatabase to file as a clangd-compatible compile_commands.json, see https://clang.llvm.org/docs/JSONCompilationDatabase.html
Click to show internal directories.
Click to hide internal directories.