LLVM  8.0.1
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
Program.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/ErrorOr.h"
#include <system_error>
Include dependency graph for Program.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::sys::ProcessInfo
 This struct encapsulates information about a process. More...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::sys
 

Typedefs

typedef pid_t llvm::sys::procid_t
 
typedef procid_t llvm::sys::process_t
 

Enumerations

enum  llvm::sys::WindowsEncodingMethod { llvm::sys::WEM_UTF8, llvm::sys::WEM_CurrentCodePage, llvm::sys::WEM_UTF16 }
 File encoding options when writing contents that a non-UTF8 tool will read (on Windows systems). More...
 

Functions

ErrorOr< std::string > llvm::sys::findProgramByName (StringRef Name, ArrayRef< StringRef > Paths={})
 Find the first executable file Name in Paths. More...
 
std::error_code llvm::sys::ChangeStdinToBinary ()
 
std::error_code llvm::sys::ChangeStdoutToBinary ()
 
int llvm::sys::ExecuteAndWait (StringRef Program, ArrayRef< StringRef > Args, Optional< ArrayRef< StringRef >> Env=None, ArrayRef< Optional< StringRef >> Redirects={}, unsigned SecondsToWait=0, unsigned MemoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
 This function executes the program using the arguments provided. More...
 
ProcessInfo llvm::sys::ExecuteNoWait (StringRef Program, ArrayRef< StringRef > Args, Optional< ArrayRef< StringRef >> Env, ArrayRef< Optional< StringRef >> Redirects={}, unsigned MemoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
 Similar to ExecuteAndWait, but returns immediately. More...
 
bool llvm::sys::commandLineFitsWithinSystemLimits (StringRef Program, ArrayRef< StringRef > Args)
 Return true if the given arguments fit within system-specific argument length limits. More...
 
bool llvm::sys::commandLineFitsWithinSystemLimits (StringRef Program, ArrayRef< const char *> Args)
 Return true if the given arguments fit within system-specific argument length limits. More...
 
std::error_code llvm::sys::writeFileWithEncoding (StringRef FileName, StringRef Contents, WindowsEncodingMethod Encoding=WEM_UTF8)
 Saves the UTF8-encoded contents string into the file FileName using a specific encoding. More...
 
ProcessInfo llvm::sys::Wait (const ProcessInfo &PI, unsigned SecondsToWait, bool WaitUntilTerminates, std::string *ErrMsg=nullptr)
 This function waits for the process specified by PI to finish. More...
 

Variables

const char llvm::sys::EnvPathSeparator = ':'
 This is the OS-specific separator for PATH like environment variables: More...