LLVM  mainline
Classes | Namespaces | Defines | Typedefs | Enumerations | Functions | Variables
CommandLine.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Compiler.h"
#include <cassert>
#include <climits>
#include <cstdarg>
#include <utility>
#include <vector>
Include dependency graph for CommandLine.h:

Go to the source code of this file.

Classes

class  llvm::cl::OptionCategory
class  llvm::cl::Option
struct  llvm::cl::desc
struct  llvm::cl::value_desc
struct  llvm::cl::initializer< Ty >
struct  llvm::cl::LocationClass< Ty >
struct  llvm::cl::cat
struct  llvm::cl::GenericOptionValue
struct  llvm::cl::OptionValueBase< DataType, isClass >
class  llvm::cl::OptionValueCopy< DataType >
struct  llvm::cl::OptionValueBase< DataType, false >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::ValuesClass< DataType >
class  llvm::cl::generic_parser_base
class  llvm::cl::generic_parser_base::GenericOptionInfo
class  llvm::cl::parser< DataType >
class  llvm::cl::parser< DataType >::OptionInfo
class  llvm::cl::basic_parser_impl
class  llvm::cl::basic_parser< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
class  llvm::cl::final< DataType >
struct  llvm::cl::OptionDiffPrinter< ParserDT, ValDT >
struct  llvm::cl::OptionDiffPrinter< DT, DT >
struct  llvm::cl::applicator< Mod >
struct  llvm::cl::applicator< char[n]>
struct  llvm::cl::applicator< const char[n]>
struct  llvm::cl::applicator< const char * >
struct  llvm::cl::applicator< NumOccurrencesFlag >
struct  llvm::cl::applicator< ValueExpected >
struct  llvm::cl::applicator< OptionHidden >
struct  llvm::cl::applicator< FormattingFlags >
struct  llvm::cl::applicator< MiscFlags >
class  llvm::cl::opt_storage< DataType, ExternalStorage, isClass >
class  llvm::cl::opt_storage< DataType, false, true >
class  llvm::cl::opt_storage< DataType, false, false >
class  llvm::cl::opt< DataType, ExternalStorage, ParserClass >
class  llvm::cl::list_storage< DataType, StorageClass >
class  llvm::cl::list_storage< DataType, bool >
class  llvm::cl::list< DataType, Storage, ParserClass >
struct  llvm::cl::multi_val
class  llvm::cl::bits_storage< DataType, StorageClass >
class  llvm::cl::bits_storage< DataType, bool >
class  llvm::cl::bits< DataType, Storage, ParserClass >
class  llvm::cl::alias
struct  llvm::cl::aliasopt
struct  llvm::cl::extrahelp
class  llvm::cl::StringSaver
 Saves strings in the inheritor's stable storage and returns a stable raw character pointer. More...

Namespaces

namespace  llvm
 

Compute iterated dominance frontiers using a linear time algorithm.


namespace  llvm::cl
 

cl Namespace - This namespace contains all of the command line option processing machinery.


Defines

#define clEnumVal(ENUMVAL, DESC)   #ENUMVAL, int(ENUMVAL), DESC
#define clEnumValN(ENUMVAL, FLAGNAME, DESC)   FLAGNAME, int(ENUMVAL), DESC
#define clEnumValEnd   (reinterpret_cast<void *>(0))

Typedefs

typedef void(* llvm::cl::TokenizerCallback )(StringRef Source, StringSaver &Saver, SmallVectorImpl< const char * > &NewArgv, bool MarkEOLs)
 String tokenization function type.

Enumerations

enum  llvm::cl::NumOccurrencesFlag {
  llvm::cl::Optional = 0x00, llvm::cl::ZeroOrMore = 0x01, llvm::cl::Required = 0x02, llvm::cl::OneOrMore = 0x03,
  llvm::cl::ConsumeAfter = 0x04
}
enum  llvm::cl::ValueExpected { llvm::cl::ValueOptional = 0x01, llvm::cl::ValueRequired = 0x02, llvm::cl::ValueDisallowed = 0x03 }
enum  llvm::cl::OptionHidden { llvm::cl::NotHidden = 0x00, llvm::cl::Hidden = 0x01, llvm::cl::ReallyHidden = 0x02 }
enum  llvm::cl::FormattingFlags { llvm::cl::NormalFormatting = 0x00, llvm::cl::Positional = 0x01, llvm::cl::Prefix = 0x02, llvm::cl::Grouping = 0x03 }
enum  llvm::cl::MiscFlags { llvm::cl::CommaSeparated = 0x01, llvm::cl::PositionalEatsArgs = 0x02, llvm::cl::Sink = 0x04 }
enum  llvm::cl::boolOrDefault { llvm::cl::BOU_UNSET, llvm::cl::BOU_TRUE, llvm::cl::BOU_FALSE }

Functions

void llvm::cl::ParseCommandLineOptions (int argc, const char *const *argv, const char *Overview=nullptr)
void llvm::cl::ParseEnvironmentOptions (const char *progName, const char *envvar, const char *Overview=nullptr)
 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).
void llvm::cl::SetVersionPrinter (void(*func)())
 ===---------------------------------------------------------------------===// SetVersionPrinter - Override the default (LLVM specific) version printer used to print out the version when --version is given on the command line.
void llvm::cl::AddExtraVersionPrinter (void(*func)())
 ===---------------------------------------------------------------------===// AddExtraVersionPrinter - Add an extra printer to use in addition to the default one.
void llvm::cl::PrintOptionValues ()
void llvm::cl::AddLiteralOption (Option &O, const char *Name)
 Adds a new option for parsing and provides the option it refers to.
template<class Ty >
initializer< Ty > llvm::cl::init (const Ty &Val)
template<class Ty >
LocationClass< Ty > llvm::cl::location (Ty &L)
template<class DataType >
ValuesClass< DataType >
LLVM_END_WITH_NULL 
llvm::cl::values (const char *Arg, DataType Val, const char *Desc,...)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< bool >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< boolOrDefault >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< int >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< unsigned >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< unsigned long long >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< double >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< float >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< std::string >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class basic_parser< char >)
template<class ParserClass , class DT >
void llvm::cl::printOptionDiff (const Option &O, const generic_parser_base &P, const DT &V, const OptionValue< DT > &Default, size_t GlobalWidth)
template<class ParserClass , class ValDT >
void llvm::cl::printOptionDiff (const Option &O, const basic_parser< typename ParserClass::parser_data_type > &P, const ValDT &V, const OptionValue< ValDT > &Default, size_t GlobalWidth)
template<class Opt , class Mod , class... Mods>
void llvm::cl::apply (Opt *O, const Mod &M, const Mods &...Ms)
template<class Opt , class Mod >
void llvm::cl::apply (Opt *O, const Mod &M)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class opt< unsigned >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class opt< int >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class opt< std::string >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class opt< char >)
 llvm::cl::EXTERN_TEMPLATE_INSTANTIATION (class opt< bool >)
void llvm::cl::PrintVersionMessage ()
 Utility function for printing version number.
void llvm::cl::PrintHelpMessage (bool Hidden=false, bool Categorized=false)
 This function just prints the help message, exactly the same way as if the.
StringMap< Option * > & llvm::cl::getRegisteredOptions ()
 Use this to get a StringMap to all registered named options (e.g.
void llvm::cl::TokenizeGNUCommandLine (StringRef Source, StringSaver &Saver, SmallVectorImpl< const char * > &NewArgv, bool MarkEOLs=false)
 Tokenizes a command line that can contain escapes and quotes.
void llvm::cl::TokenizeWindowsCommandLine (StringRef Source, StringSaver &Saver, SmallVectorImpl< const char * > &NewArgv, bool MarkEOLs=false)
 Tokenizes a Windows command line which may contain quotes and escaped quotes.
bool llvm::cl::ExpandResponseFiles (StringSaver &Saver, TokenizerCallback Tokenizer, SmallVectorImpl< const char * > &Argv, bool MarkEOLs=false)
 Expand response files on a command line recursively using the given StringSaver and tokenization strategy.
void llvm::cl::HideUnrelatedOptions (cl::OptionCategory &Category)
 Mark all options not part of this category as cl::ReallyHidden.
void llvm::cl::HideUnrelatedOptions (ArrayRef< const cl::OptionCategory * > Categories)
 Mark all options not part of the categories as cl::ReallyHidden.

Variables

OptionCategory llvm::cl::GeneralCategory

Define Documentation

#define clEnumVal (   ENUMVAL,
  DESC 
)    #ENUMVAL, int(ENUMVAL), DESC

Definition at line 493 of file CommandLine.h.

#define clEnumValEnd   (reinterpret_cast<void *>(0))

Definition at line 495 of file CommandLine.h.

#define clEnumValN (   ENUMVAL,
  FLAGNAME,
  DESC 
)    FLAGNAME, int(ENUMVAL), DESC

Definition at line 494 of file CommandLine.h.