clang API Documentation

Public Member Functions | Static Public Member Functions
clang::driver::FallbackCommand Class Reference

#include <Job.h>

Inheritance diagram for clang::driver::FallbackCommand:
Inheritance graph
[legend]
Collaboration diagram for clang::driver::FallbackCommand:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Like Command, but with a fallback which is executed in case the primary command crashes.

Definition at line 145 of file Job.h.


Constructor & Destructor Documentation

FallbackCommand::FallbackCommand ( const Action Source_,
const Tool Creator_,
const char *  Executable_,
const ArgStringList &  Arguments_,
std::unique_ptr< Command Fallback_ 
)

Definition at line 256 of file Job.cpp.


Member Function Documentation

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]
void FallbackCommand::Print ( llvm::raw_ostream &  OS,
const char *  Terminator,
bool  Quote,
CrashReportInfo CrashInfo = nullptr 
) const [override, virtual]

Print - Print this Job in -### format.

Parameters:
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.

Definition at line 263 of file Job.cpp.


The documentation for this class was generated from the following files: