clang API Documentation
#include <Job.h>
Public Member Functions | |
FallbackCommand (const Action &Source_, const Tool &Creator_, const char *Executable_, const ArgStringList &Arguments_, std::unique_ptr< Command > Fallback_) | |
void | Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const override |
int | Execute (const StringRef **Redirects, std::string *ErrMsg, bool *ExecutionFailed) const override |
Static Public Member Functions | |
static bool | classof (const Job *J) |
Like Command, but with a fallback which is executed in case the primary command crashes.
FallbackCommand::FallbackCommand | ( | const Action & | Source_, |
const Tool & | Creator_, | ||
const char * | Executable_, | ||
const ArgStringList & | Arguments_, | ||
std::unique_ptr< Command > | Fallback_ | ||
) |
static bool clang::driver::FallbackCommand::classof | ( | const Job * | J | ) | [inline, static] |
Reimplemented from clang::driver::Command.
Definition at line 157 of file Job.h.
References clang::driver::Job::FallbackCommandClass, and clang::driver::Job::getKind().
int FallbackCommand::Execute | ( | const StringRef ** | Redirects, |
std::string * | ErrMsg, | ||
bool * | ExecutionFailed | ||
) | const [override, virtual] |
Reimplemented from clang::driver::Command.
Definition at line 277 of file Job.cpp.
References clang::driver::Driver::Diag(), clang::driver::Command::getCreator(), clang::driver::ToolChain::getDriver(), clang::driver::Tool::getToolChain(), and ShouldFallback().
void FallbackCommand::Print | ( | llvm::raw_ostream & | OS, |
const char * | Terminator, | ||
bool | Quote, | ||
CrashReportInfo * | CrashInfo = nullptr |
||
) | const [override, virtual] |
Print - Print this Job in -### format.
OS | - The stream to print on. |
Terminator | - A string to print at the end of the line. |
Quote | - Should separate arguments be quoted. |
CrashInfo | - Details for inclusion in a crash report. |
Reimplemented from clang::driver::Command.