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

#include <CommandLine.h>

Collaboration diagram for llvm::cl::SubCommand:
[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 186 of file CommandLine.h.

Constructor & Destructor Documentation

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

Definition at line 196 of file CommandLine.h.

References registerSubCommand().

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

Member Function Documentation

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

Definition at line 207 of file CommandLine.h.

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

Definition at line 206 of file CommandLine.h.

SubCommand::operator bool ( ) const
explicit

Definition at line 409 of file CommandLine.cpp.

References GlobalParser.

void SubCommand::registerSubCommand ( )
protected

Definition at line 393 of file CommandLine.cpp.

References GlobalParser.

Referenced by SubCommand().

void SubCommand::reset ( )

Definition at line 401 of file CommandLine.cpp.

References ConsumeAfterOpt, OptionsMap, PositionalOpts, and SinkOpts.

void SubCommand::unregisterSubCommand ( )
protected

Definition at line 397 of file CommandLine.cpp.

References GlobalParser.

Member Data Documentation

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

Definition at line 213 of file CommandLine.h.

Referenced by reset().

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

Definition at line 209 of file CommandLine.h.

Referenced by reset().

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

Definition at line 210 of file CommandLine.h.

Referenced by reset().


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