struct CompileCommand

Declaration

struct CompileCommand { /* full declaration omitted */ };

Description

Specifies the working directory and command of a compilation.

Declared at: clang/include/clang/Tooling/CompilationDatabase.h:44

Member Variables

public std::string Directory
The working directory the command was executed from.
public std::string Filename
The source file associated with the command.
public std::vector<std::string> CommandLine
The command line that was executed.
public std::string Output
The output file associated with the command.
public std::string Heuristic
If this compile command was guessed rather than read from an authoritative source, a short human-readable explanation. e.g. "inferred from foo/bar.h".

Method Overview

  • public CompileCommand()
  • public CompileCommand(const llvm::Twine & Directory, const llvm::Twine & Filename, std::vector<std::string> CommandLine, const llvm::Twine & Output)

Methods

CompileCommand()

Declared at: clang/include/clang/Tooling/CompilationDatabase.h:45

CompileCommand(
    const llvm::Twine& Directory,
    const llvm::Twine& Filename,
    std::vector<std::string> CommandLine,
    const llvm::Twine& Output)

Declared at: clang/include/clang/Tooling/CompilationDatabase.h:46

Parameters

const llvm::Twine& Directory
const llvm::Twine& Filename
std::vector<std::string> CommandLine
const llvm::Twine& Output