|
clang
5.0.0
|
Command - An executable path/name and argument vector to execute. More...
#include "clang/Driver/Job.h"
Public Member Functions | |
| Command (const Action &Source, const Tool &Creator, const char *Executable, const llvm::opt::ArgStringList &Arguments, ArrayRef< InputInfo > Inputs) | |
| Command (const Command &)=default | |
| virtual | ~Command () |
| virtual void | Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const |
| virtual int | Execute (const StringRef **Redirects, std::string *ErrMsg, bool *ExecutionFailed) const |
| const Action & | getSource () const |
| getSource - Return the Action which caused the creation of this job. More... | |
| const Tool & | getCreator () const |
| getCreator - Return the Tool which caused the creation of this job. More... | |
| void | setResponseFile (const char *FileName) |
| Set to pass arguments via a response file when launching the command. More... | |
| void | setInputFileList (llvm::opt::ArgStringList List) |
| Set an input file list, necessary if we need to use a response file but the tool being called only supports input files lists. More... | |
| void | setEnvironment (llvm::ArrayRef< const char * > NewEnvironment) |
| Sets the environment to be used by the new process. More... | |
| const char * | getExecutable () const |
| const llvm::opt::ArgStringList & | getArguments () const |
Static Public Member Functions | |
| static void | printArg (llvm::raw_ostream &OS, StringRef Arg, bool Quote) |
| Print a command argument, and optionally quote it. More... | |
Command - An executable path/name and argument vector to execute.
| clang::driver::Command::Command | ( | const Action & | Source, |
| const Tool & | Creator, | ||
| const char * | Executable, | ||
| const llvm::opt::ArgStringList & | Arguments, | ||
| ArrayRef< InputInfo > | Inputs | ||
| ) |
|
default |
|
virtual |
Reimplemented in clang::driver::ForceSuccessCommand, and clang::driver::FallbackCommand.
Definition at line 310 of file Job.cpp.
References clang::driver::Tool::getResponseFileEncoding().
Referenced by clang::driver::FallbackCommand::Execute(), clang::driver::ForceSuccessCommand::Execute(), and clang::driver::Compilation::ExecuteCommand().
|
inline |
Definition at line 126 of file Job.h.
Referenced by clang::createInvocationFromCommandLine(), and clang::tooling::getCC1Arguments().
|
inline |
getCreator - Return the Tool which caused the creation of this job.
Definition at line 107 of file Job.h.
Referenced by clang::createInvocationFromCommandLine(), clang::driver::FallbackCommand::Execute(), clang::driver::Driver::ExecuteCompilation(), clang::driver::Driver::generateCompilationDiagnostics(), and clang::tooling::getCC1Arguments().
|
inline |
|
inline |
getSource - Return the Action which caused the creation of this job.
Definition at line 104 of file Job.h.
Referenced by clang::driver::Driver::ExecuteCompilation().
|
virtual |
Reimplemented in clang::driver::ForceSuccessCommand, and clang::driver::FallbackCommand.
Definition at line 208 of file Job.cpp.
References clang::driver::CrashReportInfo::Filename, clang::driver::Tool::getResponseFilesSupport(), rewriteIncludes(), clang::driver::Tool::RF_FileList, skipArgs(), and clang::driver::CrashReportInfo::VFSPath.
Referenced by clang::driver::Compilation::ExecuteCommand(), clang::driver::Driver::generateCompilationDiagnostics(), clang::driver::FallbackCommand::Print(), and clang::driver::ForceSuccessCommand::Print().
|
static |
Print a command argument, and optionally quote it.
Definition at line 96 of file Job.cpp.
Referenced by printArgList().
| void Command::setEnvironment | ( | llvm::ArrayRef< const char * > | NewEnvironment | ) |
|
inline |
| void Command::setResponseFile | ( | const char * | FileName | ) |
Set to pass arguments via a response file when launching the command.
Definition at line 298 of file Job.cpp.
References FileName, and clang::driver::Tool::getResponseFileFlag().
1.8.6