search for: getregisteredopt

Displaying 2 results from an estimated 2 matches for "getregisteredopt".

2016 Jun 30
2
PSA: llvm::cl now supports subcommands
I submitted this yesterday in r274171. I think this allows for a more intuitive way to structure the options of command line tools. It's optional and if you do nothing llvm::cl will work as it always has for you. Probably self explanatory, but here's some output of --help from llvm-pdbdump, which was updated to use subcommands in r274247, in case anyone wants to see what this looks
2013 Apr 11
0
[LLVMdev] Modifying the support CommandLine Library to support option categories and iteration over registered options
...bout my latest patches... http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130408/170920.html I should note that changed my idea for iterating over command line options. I didn't think that would be a nice way for people to use it. Instead with my patch clients can call llvm::cl::getRegisteredOptions(StringMap<Option*>& map) to get a map that maps strings (e.g. "help") to the Option* . This gives the client a lot of control over options. I made an example project that demonstrates my changes to the LLVM CommandLine library. Here's some of the code. https://github.co...