|
LLVM 24.0.0git
|
Classes | |
| class | Arg |
| A concrete instance of a particular driver option. More... | |
| class | arg_iterator |
| arg_iterator - Iterates through arguments stored inside an ArgList. More... | |
| class | ArgList |
| ArgList - Ordered collection of driver arguments. More... | |
| class | DerivedArgList |
| DerivedArgList - An ordered collection of driver arguments, whose storage may be in another argument list. More... | |
| class | InputArgList |
| class | LibraryOptionsParser |
| Connects options struct T to cl::parseCommandLineOptions and cl::LibraryOptionsContext. More... | |
| class | Option |
| Option - Abstract representation for a single form of driver argument. More... | |
| class | OptionsStructTable |
| The option table of an options struct. More... | |
| class | OptSpecifier |
| OptSpecifier - Wrapper class for abstracting references to option IDs. More... | |
| class | OptTable |
| Provide access to the Option info table. More... | |
| class | RegisterLibraryOptions |
| Registers T with cl::parseCommandLineOptions. More... | |
| class | Visibility |
| Helper for overload resolution while transitioning from FlagsToInclude/FlagsToExclude APIs to VisibilityMask APIs. More... | |
Typedefs | |
| using | ArgStringList = SmallVector<const char *, 16> |
| ArgStringList - Type used for constructing argv lists for subprocesses. | |
Enumerations | |
| enum | DriverFlag { HelpHidden = (1 << 0) , RenderAsInput = (1 << 1) , RenderJoined = (1 << 2) , RenderSeparate = (1 << 3) } |
| Base flags for all options. Custom flags may be added after. More... | |
| enum | DriverVisibility { DefaultVis = (1 << 0) } |
Functions | |
| bool | parseArgValue (StringRef S, bool &V) |
| bool | parseArgValue (StringRef S, BoolOrDefault &V) |
| bool | parseArgValue (StringRef S, StringRef &V) |
| template<typename T> | |
| std::enable_if_t< std::is_arithmetic_v< T > &&!std::is_same_v< T, bool >, bool > | parseArgValue (StringRef S, T &V) |
| template<typename T> | |
| bool | parseArgValue (StringRef S, std::optional< T > &V) |
| template<typename T> | |
| bool | parseArgValue (StringRef S, T &V, BumpPtrAllocator &) |
| template<typename T, typename F> | |
| bool | parseArgValue (StringRef S, T &V, BumpPtrAllocator &, F Parse) |
| template<typename T> | |
| void | appendList (ArrayRef< T > &List, ArrayRef< T > Elems, BumpPtrAllocator &Alloc) |
| template<typename T, typename F> | |
| bool | parseArgValue (StringRef S, ArrayRef< T > &List, BumpPtrAllocator &Alloc, F ParseElem) |
| template<typename T> | |
| bool | parseArgValue (StringRef S, ArrayRef< T > &List, BumpPtrAllocator &Alloc) |
| template<typename T> | |
| bool | appendArgValue (StringRef S, ArrayRef< T > &List, BumpPtrAllocator &Alloc) |
| template<typename T> | |
| Error | parseToolArgs (T &Opts, int Argc, const char *const *Argv, BumpPtrAllocator &Alloc, SmallVectorImpl< StringRef > &Inputs) |
Parses a tool's command line, expanding response files, into options struct Opts, whose string members refer to Argv or Alloc. | |
| using llvm::opt::ArgStringList = SmallVector<const char *, 16> |
ArgStringList - Type used for constructing argv lists for subprocesses.
| bool llvm::opt::appendArgValue | ( | StringRef | S, |
| ArrayRef< T > & | List, | ||
| BumpPtrAllocator & | Alloc ) |
Definition at line 124 of file OptionsStruct.h.
References llvm::Alloc, appendList(), llvm::ArrayRef(), llvm::List, parseArgValue(), and T.
| void llvm::opt::appendList | ( | ArrayRef< T > & | List, |
| ArrayRef< T > | Elems, | ||
| BumpPtrAllocator & | Alloc ) |
Definition at line 93 of file OptionsStruct.h.
References llvm::Alloc, llvm::ArrayRef(), llvm::copy(), llvm::List, llvm::ArrayRef< T >::size(), and T.
Referenced by appendArgValue(), and parseArgValue().
| bool llvm::opt::parseArgValue | ( | StringRef | S, |
| ArrayRef< T > & | List, | ||
| BumpPtrAllocator & | Alloc ) |
Definition at line 116 of file OptionsStruct.h.
References llvm::Alloc, llvm::List, parseArgValue(), and T.
| bool llvm::opt::parseArgValue | ( | StringRef | S, |
| ArrayRef< T > & | List, | ||
| BumpPtrAllocator & | Alloc, | ||
| F | ParseElem ) |
Definition at line 102 of file OptionsStruct.h.
References llvm::Alloc, appendList(), F, llvm::List, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::split(), and T.
Definition at line 37 of file OptionsStruct.h.
References V.
Referenced by appendArgValue(), parseArgValue(), parseArgValue(), parseArgValue(), and parseArgValue().
|
inline |
Definition at line 47 of file OptionsStruct.h.
References B(), llvm::False, parseArgValue(), llvm::True, and V.
Definition at line 70 of file OptionsStruct.h.
References parseArgValue(), T, V, and X.
Definition at line 55 of file OptionsStruct.h.
References V.
| std::enable_if_t< std::is_arithmetic_v< T > &&!std::is_same_v< T, bool >, bool > llvm::opt::parseArgValue | ( | StringRef | S, |
| T & | V ) |
Definition at line 62 of file OptionsStruct.h.
References T, llvm::to_float(), llvm::to_integer(), and V.
| bool llvm::opt::parseArgValue | ( | StringRef | S, |
| T & | V, | ||
| BumpPtrAllocator & | ) |
Definition at line 80 of file OptionsStruct.h.
References parseArgValue(), T, and V.
| bool llvm::opt::parseArgValue | ( | StringRef | S, |
| T & | V, | ||
| BumpPtrAllocator & | , | ||
| F | Parse ) |
Definition at line 86 of file OptionsStruct.h.
| Error llvm::opt::parseToolArgs | ( | T & | Opts, |
| int | Argc, | ||
| const char *const * | Argv, | ||
| BumpPtrAllocator & | Alloc, | ||
| SmallVectorImpl< StringRef > & | Inputs ) |
Parses a tool's command line, expanding response files, into options struct Opts, whose string members refer to Argv or Alloc.
Positional arguments, and every argument after "--", are appended to Inputs.
Definition at line 153 of file OptionsStruct.h.
References A(), llvm::Alloc, and T.