clang  12.0.0git
Public Member Functions | List of all members
clang::driver::FallbackCommand Class Reference

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

#include "clang/Driver/Job.h"

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

Public Member Functions

 FallbackCommand (const Action &Source_, const Tool &Creator_, ResponseFileSupport ResponseSupport, const char *Executable_, const llvm::opt::ArgStringList &Arguments_, ArrayRef< InputInfo > Inputs, std::unique_ptr< Command > Fallback_)
 
void Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const override
 
int Execute (ArrayRef< Optional< StringRef >> Redirects, std::string *ErrMsg, bool *ExecutionFailed) const override
 
- Public Member Functions inherited from clang::driver::Command
 Command (const Action &Source, const Tool &Creator, ResponseFileSupport ResponseSupport, const char *Executable, const llvm::opt::ArgStringList &Arguments, ArrayRef< InputInfo > Inputs)
 
 Command (const Command &)=default
 
virtual ~Command ()=default
 
const ActiongetSource () const
 getSource - Return the Action which caused the creation of this job. More...
 
const ToolgetCreator () const
 getCreator - Return the Tool which caused the creation of this job. More...
 
const ResponseFileSupportgetResponseFileSupport ()
 Returns the kind of response file supported by the current invocation. 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 you specified an RF_FileList response file support. More...
 
virtual 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
 

Additional Inherited Members

- Public Attributes inherited from clang::driver::Command
bool PrintInputFilenames = false
 Whether to print the input filenames when executing. More...
 
bool InProcess = false
 Whether the command will be executed in this process or not. More...
 
- Protected Member Functions inherited from clang::driver::Command
void PrintFileNames () const
 Optionally print the filenames to be compiled. More...
 

Detailed Description

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

Definition at line 228 of file Job.h.

Constructor & Destructor Documentation

◆ FallbackCommand()

FallbackCommand::FallbackCommand ( const Action Source_,
const Tool Creator_,
ResponseFileSupport  ResponseSupport,
const char *  Executable_,
const llvm::opt::ArgStringList &  Arguments_,
ArrayRef< InputInfo Inputs,
std::unique_ptr< Command Fallback_ 
)

Definition at line 413 of file Job.cpp.

Member Function Documentation

◆ Execute()

int FallbackCommand::Execute ( ArrayRef< Optional< StringRef >>  Redirects,
std::string *  ErrMsg,
bool ExecutionFailed 
) const
overridevirtual

◆ Print()

void FallbackCommand::Print ( llvm::raw_ostream &  OS,
const char *  Terminator,
bool  Quote,
CrashReportInfo CrashInfo = nullptr 
) const
overridevirtual

Reimplemented from clang::driver::Command.

Definition at line 423 of file Job.cpp.

References clang::driver::Command::Print().


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