LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cl Namespace Reference


Functions

void ParseEnvironmentOptions (const char *progName, const char *envVar, const char *Overview)
void ParseCommandLineOptions (int &argc, char **argv, const char *Overview)
void PrintHelpMessage ()


Function Documentation

void cl::ParseCommandLineOptions int &  argc,
char **  argv,
const char *  Overview = 0
 

Definition at line 286 of file CommandLine.cpp.

References llvm::cl::CommaSeparated, llvm::cl::ConsumeAfter, E, EatsUnboundedNumberOfValues(), first, getOptionPred(), getOpts(), getPositionalOpts(), I, isGrouping(), isPrefixedOrGrouping(), LookupOption(), MoreHelp(), llvm::cl::OneOrMore, llvm::cl::Optional, llvm::cl::Positional, llvm::cl::PositionalEatsArgs, llvm::cl::Prefix, ProgramName, ProgramOverview, ProvideOption(), ProvidePositionalOption(), llvm::cl::Required, RequiresValue(), second, llvm::cl::ValueRequired, and llvm::cl::ZeroOrMore.

Referenced by ParseEnvironmentOptions().

void cl::ParseEnvironmentOptions const char *  progName,
const char *  envVar,
const char *  Overview
 

ParseEnvironmentOptions - An alternative entry point to the CommandLine library, which allows you to read the program's name from the caller (as PROGNAME) and its command-line arguments from an environment variable (whose name is given in ENVVAR).

Definition at line 234 of file CommandLine.cpp.

References ParseCommandLineOptions(), ParseCStringVector(), and strdup.

void cl::PrintHelpMessage  ) 
 

Definition at line 962 of file CommandLine.cpp.

References NormalPrinter().