Displaying 1 result from an estimated 1 matches for "gethelpdescription".
2013 Feb 06
1
[LLVMdev] Modifying the support CommandLine Library to support option categories and iteration over registered options
...g like this in LLVM
command Line library
class llvm::cl::OptionCategory
{
protected OptionCategory() { //code to register category with a
global store, all heavy lifting work is done here! }
virtual const char* getName()=0; //shown as option category header
name in --help
virtual const char* getHelpDescription()=0; //shown below the option
category header name in --help
}
class llvm::cl::DefaultCategory
{
virtual const char* getName() { return "General";}
virtual const char* getHelpDescription() { return "";}
}
then clients in their own code could simply implement their own
cate...