31 llvm::cl::SubCommand m_SubCommand;
39 SubCommand(
const char* command,
const char* desc);
45 virtual int Run() = 0;
49 operator llvm::cl::SubCommand&();
51 operator bool()
const;
An abstraction class of llvm::cl::SubCommand
static llvm::cl::OptionCategory & GetCategory()
Gets default category of all sub-commands registered by LILAC.
virtual ~SubCommand()=default
SubCommand(const char *command, const char *desc)
Creates a sub-command with given name and description.
virtual int Run()=0
Runs a subcommand.