LLVM  14.0.0git
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 210 of file CommandLine.h.

Constructor & Destructor Documentation

◆ SubCommand() [1/2]

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

Definition at line 220 of file CommandLine.h.

References registerSubCommand().

◆ SubCommand() [2/2]

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

Member Function Documentation

◆ getDescription()

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

Definition at line 231 of file CommandLine.h.

◆ getName()

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

Definition at line 230 of file CommandLine.h.

◆ operator bool()

SubCommand::operator bool ( ) const
explicit

Definition at line 511 of file CommandLine.cpp.

References GlobalParser.

◆ registerSubCommand()

void SubCommand::registerSubCommand ( )
protected

Definition at line 495 of file CommandLine.cpp.

References GlobalParser.

Referenced by SubCommand().

◆ reset()

void SubCommand::reset ( )

Definition at line 503 of file CommandLine.cpp.

References ConsumeAfterOpt, OptionsMap, PositionalOpts, and SinkOpts.

◆ unregisterSubCommand()

void SubCommand::unregisterSubCommand ( )
protected

Definition at line 499 of file CommandLine.cpp.

References GlobalParser.

Member Data Documentation

◆ ConsumeAfterOpt

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

Definition at line 237 of file CommandLine.h.

Referenced by reset().

◆ OptionsMap

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

◆ PositionalOpts

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

Definition at line 233 of file CommandLine.h.

Referenced by reset().

◆ SinkOpts

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

Definition at line 234 of file CommandLine.h.

Referenced by reset().


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