LLVM API Documentation
#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Twine.h"#include "llvm/ADT/StringMap.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/type_traits.h"#include <cassert>#include <climits>#include <cstdarg>#include <utility>#include <vector>

Go to the source code of this file.
Namespaces | |
| llvm | |
| List of target independent CodeGen pass IDs. | |
| llvm::cl | |
Macros | |
| #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) |
| String tokenization function type. Should be compatible with either Windows or Unix command line tokenizers. More... | |
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=0) |
| void | llvm::cl::ParseEnvironmentOptions (const char *progName, const char *envvar, const char *Overview=0) |
| void | llvm::cl::SetVersionPrinter (void(*func)()) |
| void | llvm::cl::AddExtraVersionPrinter (void(*func)()) |
| void | llvm::cl::PrintOptionValues () |
| void | llvm::cl::MarkOptionsChanged () |
| 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 > 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 Mod , class Opt > | |
| void | llvm::cl::apply (const Mod &M, Opt *O) |
| 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. More... | |
| void | llvm::cl::PrintHelpMessage (bool Hidden=false, bool Categorized=false) |
| void | llvm::cl::getRegisteredOptions (StringMap< Option * > &Map) |
Use this to get a StringMap to all registered named options (e.g. -help). Note Map Should be an empty StringMap. More... | |
| void | llvm::cl::TokenizeGNUCommandLine (StringRef Source, StringSaver &Saver, SmallVectorImpl< const char * > &NewArgv) |
| Tokenizes a command line that can contain escapes and quotes. More... | |
| void | llvm::cl::TokenizeWindowsCommandLine (StringRef Source, StringSaver &Saver, SmallVectorImpl< const char * > &NewArgv) |
| Tokenizes a Windows command line which may contain quotes and escaped quotes. More... | |
| bool | llvm::cl::ExpandResponseFiles (StringSaver &Saver, TokenizerCallback Tokenizer, SmallVectorImpl< const char * > &Argv) |
| Expand response files on a command line recursively using the given StringSaver and tokenization strategy. Argv should contain the command line before expansion and will be modified in place. More... | |
Variables | |
| OptionCategory | llvm::cl::GeneralCategory |
| #define clEnumVal | ( | ENUMVAL, | |
| DESC | |||
| ) | #ENUMVAL, int(ENUMVAL), DESC |
Definition at line 470 of file CommandLine.h.
| #define clEnumValEnd (reinterpret_cast<void*>(0)) |
Definition at line 472 of file CommandLine.h.
| #define clEnumValN | ( | ENUMVAL, | |
| FLAGNAME, | |||
| DESC | |||
| ) | FLAGNAME, int(ENUMVAL), DESC |
Definition at line 471 of file CommandLine.h.