LLVM 24.0.0git
llvm::opt Namespace Reference

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 an options struct to cl::ParseCommandLineOptions. More...
class  LibraryOptTable
 An OptTable with a public constructor, shared by every options struct. More...
class  Option
 Option - Abstract representation for a single form of driver argument. 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::Global 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, 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)

Typedef Documentation

◆ ArgStringList

ArgStringList - Type used for constructing argv lists for subprocesses.

Definition at line 30 of file Option.h.

Enumeration Type Documentation

◆ DriverFlag

Base flags for all options. Custom flags may be added after.

Enumerator
HelpHidden 
RenderAsInput 
RenderJoined 
RenderSeparate 

Definition at line 33 of file Option.h.

◆ DriverVisibility

Enumerator
DefaultVis 

Definition at line 40 of file Option.h.

Function Documentation

◆ parseArgValue() [1/9]

template<typename T>
bool llvm::opt::parseArgValue ( StringRef S,
ArrayRef< T > & List,
BumpPtrAllocator & Alloc )

Definition at line 108 of file LibraryOptions.h.

References llvm::Alloc, llvm::List, parseArgValue(), and T.

◆ parseArgValue() [2/9]

template<typename T, typename F>
bool llvm::opt::parseArgValue ( StringRef S,
ArrayRef< T > & List,
BumpPtrAllocator & Alloc,
F ParseElem )

◆ parseArgValue() [3/9]

bool llvm::opt::parseArgValue ( StringRef S,
bool & V )
inline

Definition at line 35 of file LibraryOptions.h.

Referenced by parseArgValue(), parseArgValue(), parseArgValue(), and parseArgValue().

◆ parseArgValue() [4/9]

bool llvm::opt::parseArgValue ( StringRef S,
BoolOrDefault & V )
inline

Definition at line 45 of file LibraryOptions.h.

References B(), llvm::False, parseArgValue(), and llvm::True.

◆ parseArgValue() [5/9]

template<typename T>
bool llvm::opt::parseArgValue ( StringRef S,
std::optional< T > & V )

Definition at line 68 of file LibraryOptions.h.

References parseArgValue(), T, and X.

◆ parseArgValue() [6/9]

bool llvm::opt::parseArgValue ( StringRef S,
StringRef & V )
inline

Definition at line 53 of file LibraryOptions.h.

◆ parseArgValue() [7/9]

template<typename T>
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 60 of file LibraryOptions.h.

References T, llvm::to_float(), and llvm::to_integer().

◆ parseArgValue() [8/9]

template<typename T>
bool llvm::opt::parseArgValue ( StringRef S,
T & V,
BumpPtrAllocator &  )

Definition at line 78 of file LibraryOptions.h.

References parseArgValue(), and T.

◆ parseArgValue() [9/9]

template<typename T, typename F>
bool llvm::opt::parseArgValue ( StringRef S,
T & V,
BumpPtrAllocator & ,
F Parse )

Definition at line 84 of file LibraryOptions.h.

References F, and T.