clang API Documentation

Public Member Functions | Public Attributes
clang::tooling::CompileCommand Struct Reference

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

#include <CompilationDatabase.h>

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

List of all members.

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.

Detailed Description

Specifies the working directory and command of a compilation.

Definition at line 43 of file CompilationDatabase.h.


Constructor & Destructor Documentation

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.


Member Data Documentation

The command line that was executed.

Definition at line 52 of file CompilationDatabase.h.

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

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.


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