[PATCH] Extra Command Line library functionality (option grouping and runtime inspection/modification)

Daniel Liew daniel.liew at imperial.ac.uk
Wed Apr 17 20:46:55 PDT 2013


Hi,

I've reworked my patches and redesigned a few bits. Now there is no
-help-cat. There is just the -help command line option. If two or more
option categories are declared then the behaviour of -help automatically
changes so it shows categorized output instead of uncategorized output.
When -help produces categorized output an option -help-list becomes
unhidden which will produce uncategorized output.

I have also documented my work in the Sphinx documentation in my patches.

The patches are attached. They were generated with git, they seem to
apply ok although git complains about trailing white space.

My git branch with these patches on can be found at
https://github.com/delcypher/llvm/tree/new-llvm-cmd

I also have a sample project that compiles against my API changes at
https://github.com/delcypher/sample-llvm-cmd

> Sorry. Normally, a maintainer of that area should check the patches, but 
> looking at the git history, it seems there is not a single person to 
> point to. Someone feels capable?

What do you suggest I do? I could e-mail the top 3 committers (by line)
who are...

Chris Latner
Andrew Trick
Jim Laskey

Thanks,
Dan Liew.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-support-for-declaring-Option-categories-and-th.patch
Type: text/x-patch
Size: 16056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130418/f7f99939/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Implemented-public-interface-for-modifying-registere.patch
Type: text/x-patch
Size: 2877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130418/f7f99939/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Added-table-of-contents-declaration-in-CommandLine-L.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130418/f7f99939/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Added-Sphinx-documentation-for-CommandLine-option-ca.patch
Type: text/x-patch
Size: 3756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130418/f7f99939/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Added-Sphinx-documentation-for-cl-getRegisteredOptio.patch
Type: text/x-patch
Size: 2675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130418/f7f99939/attachment-0004.bin>


More information about the llvm-commits mailing list