class CC1Command
Declaration
class CC1Command : public Command { /* full declaration omitted */ };
Description
Use the CC1 tool callback when available, to avoid creating a new process
Declared at: clang/include/clang/Driver/Job.h:233
Inherits from: Command
Member Variables
Inherited from Command:
- public PrintInputFilenames = false
- public InProcess = false
Method Overview
- public CC1Command(const clang::driver::Action & Source, const clang::driver::Tool & Creator, clang::driver::ResponseFileSupport ResponseSupport, const char * Executable, const llvm::opt::ArgStringList & Arguments, ArrayRef<clang::driver::InputInfo> Inputs, ArrayRef<clang::driver::InputInfo> Outputs = None)
- public int Execute(ArrayRef<Optional<llvm::StringRef>> Redirects, std::string * ErrMsg, bool * ExecutionFailed) const
- public void Print(llvm::raw_ostream & OS, const char * Terminator, bool Quote, clang::driver::CrashReportInfo * CrashInfo = nullptr) const
- public void setEnvironment(llvm::ArrayRef<const char *> NewEnvironment)
Inherited from Command:
- public Execute
- public Print
- protected PrintFileNames
- public getArguments
- public getCreator
- public getExecutable
- public getInputInfos
- public getOutputFilenames
- public getProcessStatistics
- public getResponseFileSupport
- public getSource
- public replaceArguments
- public replaceExecutable
- public setEnvironment
- public setInputFileList
- public setResponseFile
Methods
¶CC1Command(
const clang::driver::Action& Source,
const clang::driver::Tool& Creator,
clang::driver::ResponseFileSupport
ResponseSupport,
const char* Executable,
const llvm::opt::ArgStringList& Arguments,
ArrayRef<clang::driver::InputInfo> Inputs,
ArrayRef<clang::driver::InputInfo> Outputs =
None)
CC1Command(
const clang::driver::Action& Source,
const clang::driver::Tool& Creator,
clang::driver::ResponseFileSupport
ResponseSupport,
const char* Executable,
const llvm::opt::ArgStringList& Arguments,
ArrayRef<clang::driver::InputInfo> Inputs,
ArrayRef<clang::driver::InputInfo> Outputs =
None)
Declared at: clang/include/clang/Driver/Job.h:235
Parameters
- const clang::driver::Action& Source
- const clang::driver::Tool& Creator
- clang::driver::ResponseFileSupport ResponseSupport
- const char* Executable
- const llvm::opt::ArgStringList& Arguments
- ArrayRef<clang::driver::InputInfo> Inputs
- ArrayRef<clang::driver::InputInfo> Outputs = None
¶int Execute(
ArrayRef<Optional<llvm::StringRef>> Redirects,
std::string* ErrMsg,
bool* ExecutionFailed) const
int Execute(
ArrayRef<Optional<llvm::StringRef>> Redirects,
std::string* ErrMsg,
bool* ExecutionFailed) const
Declared at: clang/include/clang/Driver/Job.h:243
Parameters
- ArrayRef<Optional<llvm::StringRef>> Redirects
- std::string* ErrMsg
- bool* ExecutionFailed
¶void Print(llvm::raw_ostream& OS,
const char* Terminator,
bool Quote,
clang::driver::CrashReportInfo*
CrashInfo = nullptr) const
void Print(llvm::raw_ostream& OS,
const char* Terminator,
bool Quote,
clang::driver::CrashReportInfo*
CrashInfo = nullptr) const
Declared at: clang/include/clang/Driver/Job.h:240
Parameters
- llvm::raw_ostream& OS
- const char* Terminator
- bool Quote
- clang::driver::CrashReportInfo* CrashInfo = nullptr
¶void setEnvironment(
llvm::ArrayRef<const char*> NewEnvironment)
void setEnvironment(
llvm::ArrayRef<const char*> NewEnvironment)
Description
Sets the environment to be used by the new process.
Declared at: clang/include/clang/Driver/Job.h:246
Parameters
- llvm::ArrayRef<const char*> NewEnvironment
- An array of environment variables.