clang  3.9.0
Public Member Functions | Public Attributes | List of all members
clang::tooling::CompileCommand Struct Reference

Specifies the working directory and command of a compilation. More...

#include <CompilationDatabase.h>

Collaboration diagram for clang::tooling::CompileCommand:
[legend]

Public Member Functions

 CompileCommand ()
 
 CompileCommand (Twine Directory, Twine Filename, std::vector< std::string > CommandLine)
 

Public Attributes

std::string Directory
 The working directory the command was executed from. More...
 
std::string Filename
 The source file associated with the command. More...
 
std::vector< std::string > CommandLine
 The command line that was executed. More...
 
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. More...
 

Detailed Description

Specifies the working directory and command of a compilation.

Definition at line 43 of file CompilationDatabase.h.

Constructor & Destructor Documentation

clang::tooling::CompileCommand::CompileCommand ( )
inline

Definition at line 44 of file CompilationDatabase.h.

clang::tooling::CompileCommand::CompileCommand ( Twine  Directory,
Twine  Filename,
std::vector< std::string >  CommandLine 
)
inline

Definition at line 45 of file CompilationDatabase.h.

Member Data Documentation

std::vector<std::string> clang::tooling::CompileCommand::CommandLine

The command line that was executed.

Definition at line 58 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 52 of file CompilationDatabase.h.

Referenced by clang::tooling::ClangTool::run().

std::string clang::tooling::CompileCommand::Filename

The source file associated with the command.

Definition at line 55 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 68 of file CompilationDatabase.h.


The documentation for this struct was generated from the following file: