Showing content from https://clang.llvm.org/doxygen/classclang_1_1driver_1_1CC1Command.html below:
clang: clang::driver::CC1Command Class Reference
Use the CC1 tool callback when available, to avoid creating a new process. More...
#include "clang/Driver/Job.h"
CC1Command (const Action &Source, const Tool &Creator, ResponseFileSupport ResponseSupport, const char *Executable, const llvm::opt::ArgStringList &Arguments, ArrayRef< InputInfo > Inputs, ArrayRef< InputInfo > Outputs={}, const char *PrependArg=nullptr) void Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const override int Execute (ArrayRef< std::optional< StringRef > > Redirects, std::string *ErrMsg, bool *ExecutionFailed) const override void setEnvironment (llvm::ArrayRef< const char * > NewEnvironment) override Sets the environment to be used by the new process.
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, ArrayRef< InputInfo > Outputs={}, const char *PrependArg=nullptr) Command (const Command &)=default virtual ~Command ()=default virtual void Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const virtual int Execute (ArrayRef< std::optional< StringRef > > Redirects, std::string *ErrMsg, bool *ExecutionFailed) const const Action & getSource () const getSource - Return the Action which caused the creation of this job.
const Tool & getCreator () const getCreator - Return the Tool which caused the creation of this job.
const ResponseFileSupport & getResponseFileSupport () Returns the kind of response file supported by the current invocation.
void setResponseFile (const char *FileName) Set to pass arguments via a response file when launching the command.
void setInputFileList (llvm::opt::ArgStringList List) Set an input file list, necessary if you specified an RF_FileList response file support.
virtual void setEnvironment (llvm::ArrayRef< const char * > NewEnvironment) Sets the environment to be used by the new process.
void setRedirectFiles (const std::vector< std::optional< std::string > > &Redirects) void replaceArguments (llvm::opt::ArgStringList List) void replaceExecutable (const char *Exe) const char * getExecutable () const const llvm::opt::ArgStringList & getArguments () const const std::vector< InputInfo > & getInputInfos () const const std::vector< std::string > & getOutputFilenames () const std::optional< llvm::sys::ProcessStatistics > getProcessStatistics () const
Use the CC1 tool callback when available, to avoid creating a new process.
Definition at line 242 of file Job.h.
◆ CC1Command() ◆ Execute() int CC1Command::Execute ( ArrayRef< std::optional< StringRef > > Redirects, std::string * ErrMsg, bool * ExecutionFailed ) const overridevirtual ◆ Print() void CC1Command::Print ( llvm::raw_ostream & OS, const char * Terminator, bool Quote, CrashReportInfo * CrashInfo = nullptr
) const overridevirtual ◆ setEnvironment() void CC1Command::setEnvironment ( llvm::ArrayRef< const char * > NewEnvironment ) overridevirtual
Sets the environment to be used by the new process.
-
Parameters
-
NewEnvironment An array of environment variables.
Reimplemented from clang::driver::Command.
Definition at line 444 of file Job.cpp.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4