clang API Documentation
Specifies the working directory and command of a compilation. More...
#include <CompilationDatabase.h>
Public Member Functions | |
CompileCommand () | |
CompileCommand (Twine Directory, std::vector< std::string > CommandLine) | |
Public Attributes | |
std::string | Directory |
The working directory the command was executed from. | |
std::vector< std::string > | CommandLine |
The command line that was executed. | |
std::vector< std::pair < std::string, std::string > > | MappedSources |
An optional mapping from each file's path to its content for all files needed for the compilation that are not available via the file system. |
Specifies the working directory and command of a compilation.
Definition at line 43 of file CompilationDatabase.h.
clang::tooling::CompileCommand::CompileCommand | ( | ) | [inline] |
Definition at line 44 of file CompilationDatabase.h.
clang::tooling::CompileCommand::CompileCommand | ( | Twine | Directory, |
std::vector< std::string > | CommandLine | ||
) | [inline] |
Definition at line 45 of file CompilationDatabase.h.
std::vector<std::string> clang::tooling::CompileCommand::CommandLine |
The command line that was executed.
Definition at line 52 of file CompilationDatabase.h.
Referenced by clang::tooling::ClangTool::run().
std::string clang::tooling::CompileCommand::Directory |
The working directory the command was executed from.
Definition at line 49 of file CompilationDatabase.h.
Referenced by clang::tooling::ClangTool::run().
std::vector<std::pair<std::string, std::string> > clang::tooling::CompileCommand::MappedSources |
An optional mapping from each file's path to its content for all files needed for the compilation that are not available via the file system.
Note that a tool implementation is required to fall back to the file system if a source file is not provided in the mapped sources, as compilation databases will usually not provide all files in mapped sources for performance reasons.
Definition at line 62 of file CompilationDatabase.h.