LLVM  8.0.1
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
llvm::cl::SubCommand Class Reference

#include "llvm/Support/CommandLine.h"

Collaboration diagram for llvm::cl::SubCommand:
Collaboration graph
[legend]

Public Member Functions

 SubCommand (StringRef Name, StringRef Description="")
 
 SubCommand ()=default
 
void reset ()
 
 operator bool () const
 
StringRef getName () const
 
StringRef getDescription () const
 

Public Attributes

SmallVector< Option *, 4 > PositionalOpts
 
SmallVector< Option *, 4 > SinkOpts
 
StringMap< Option * > OptionsMap
 
OptionConsumeAfterOpt = nullptr
 

Protected Member Functions

void registerSubCommand ()
 
void unregisterSubCommand ()
 

Detailed Description

Definition at line 208 of file CommandLine.h.

Constructor & Destructor Documentation

◆ SubCommand() [1/2]

llvm::cl::SubCommand::SubCommand ( StringRef  Name,
StringRef  Description = "" 
)
inline

Definition at line 218 of file CommandLine.h.

◆ SubCommand() [2/2]

llvm::cl::SubCommand::SubCommand ( )
default

Member Function Documentation

◆ getDescription()

StringRef llvm::cl::SubCommand::getDescription ( ) const
inline

Definition at line 229 of file CommandLine.h.

Referenced by sortSubCommands().

◆ getName()

StringRef llvm::cl::SubCommand::getName ( ) const
inline

Definition at line 228 of file CommandLine.h.

Referenced by llvm::cl::basic_parser_impl::anchor(), and sortSubCommands().

◆ operator bool()

SubCommand::operator bool ( ) const
explicit

◆ registerSubCommand()

void SubCommand::registerSubCommand ( )
protected

Definition at line 383 of file CommandLine.cpp.

◆ reset()

void SubCommand::reset ( )

Definition at line 391 of file CommandLine.cpp.

◆ unregisterSubCommand()

void SubCommand::unregisterSubCommand ( )
protected

Definition at line 387 of file CommandLine.cpp.

Member Data Documentation

◆ ConsumeAfterOpt

Option* llvm::cl::SubCommand::ConsumeAfterOpt = nullptr

◆ OptionsMap

StringMap<Option *> llvm::cl::SubCommand::OptionsMap

◆ PositionalOpts

SmallVector<Option *, 4> llvm::cl::SubCommand::PositionalOpts

◆ SinkOpts

SmallVector<Option *, 4> llvm::cl::SubCommand::SinkOpts

The documentation for this class was generated from the following files: