LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
lilac::SubCommand Class Referenceabstract

An abstraction class of llvm::cl::SubCommand More...

#include <subcommand.h>

Inheritance diagram for lilac::SubCommand:

Public Member Functions

 SubCommand (const char *command, const char *desc)
 Creates a sub-command with given name and description.
 
virtual int Run ()=0
 Runs a subcommand.
 
virtual ~SubCommand ()=default
 
 operator llvm::cl::SubCommand & ()
 
 operator bool () const
 

Static Public Member Functions

static llvm::cl::OptionCategory & GetCategory ()
 Gets default category of all sub-commands registered by LILAC.
 

Detailed Description

An abstraction class of llvm::cl::SubCommand

Definition at line 29 of file subcommand.h.

Constructor & Destructor Documentation

◆ SubCommand()

lilac::SubCommand::SubCommand ( const char * command,
const char * desc )

Creates a sub-command with given name and description.

Parameters
commandA name of the sub-command
descA description of the sub-command

Definition at line 24 of file subcommand.cxx.

◆ ~SubCommand()

virtual lilac::SubCommand::~SubCommand ( )
virtualdefault

Member Function Documentation

◆ GetCategory()

llvm::cl::OptionCategory & lilac::SubCommand::GetCategory ( )
static

Gets default category of all sub-commands registered by LILAC.

Returns
Returns default category of all sub-commands registered by LILAC

Definition at line 39 of file subcommand.cxx.

◆ operator bool()

lilac::SubCommand::operator bool ( ) const

Definition at line 34 of file subcommand.cxx.

◆ operator llvm::cl::SubCommand &()

lilac::SubCommand::operator llvm::cl::SubCommand & ( )

Definition at line 29 of file subcommand.cxx.

◆ Run()

virtual int lilac::SubCommand::Run ( )
pure virtual

Runs a subcommand.

Returns
Zero will be returned when completed successfully; otherwise, non-zero will be returned

Implemented in lilac::CompileSymbolSubCommand, and lilac::GenerateSubCommand.


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