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, 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)

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/4]

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

Definition at line 31 of file LibraryOptions.h.

Referenced by parseArgValue().

◆ parseArgValue() [2/4]

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

Definition at line 56 of file LibraryOptions.h.

References parseArgValue(), T, and X.

◆ parseArgValue() [3/4]

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

Definition at line 41 of file LibraryOptions.h.

◆ parseArgValue() [4/4]

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 48 of file LibraryOptions.h.

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