search for: defaultcategory

Displaying 1 result from an estimated 1 matches for "defaultcategory".

2013 Feb 06
1
[LLVMdev] Modifying the support CommandLine Library to support option categories and iteration over registered options
...ry() { //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 categories by sub-classing e.g. class klee::SMTLIBOptionsCategory : public llvm::cl::OptionCategory...