LLVM  5.0.0
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:
[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
 
Option * ConsumeAfterOpt = nullptr
 

Protected Member Functions

void registerSubCommand ()
 
void unregisterSubCommand ()
 

Detailed Description

Definition at line 191 of file CommandLine.h.

Constructor & Destructor Documentation

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

Definition at line 201 of file CommandLine.h.

References registerSubCommand().

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

Member Function Documentation

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

Definition at line 212 of file CommandLine.h.

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

Definition at line 211 of file CommandLine.h.

SubCommand::operator bool ( ) const
explicit

Definition at line 410 of file CommandLine.cpp.

References GlobalParser.

void SubCommand::registerSubCommand ( )
protected

Definition at line 394 of file CommandLine.cpp.

References GlobalParser.

Referenced by SubCommand().

void SubCommand::reset ( )

Definition at line 402 of file CommandLine.cpp.

References ConsumeAfterOpt, OptionsMap, PositionalOpts, and SinkOpts.

void SubCommand::unregisterSubCommand ( )
protected

Definition at line 398 of file CommandLine.cpp.

References GlobalParser.

Member Data Documentation

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

Definition at line 218 of file CommandLine.h.

Referenced by reset().

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

Definition at line 214 of file CommandLine.h.

Referenced by reset().

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

Definition at line 215 of file CommandLine.h.

Referenced by reset().


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