[llvm-commits] [PATCH] Support for multi-valued options in CommandLine

Mikhail Glushenkov foldr at codedgers.com
Thu Jan 15 17:31:30 PST 2009


this adds support for multi-valued options to CommandLine (needed to  
implement some Darwin-specific options in llvmc).

Used like this:

// Zero or more occurences, 2 values
cl::list<std::string> MultiValuedOption("multi-valued", cl::multi_val(2));

// One and only one occurence, 3 values
cl::list<std::string> MultiValuedOption("multi-valued",  
cl::multi_val(3), cl::Required);

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-for-multi-valued-options-in-CommandLine.patch
Type: text/x-patch
Size: 6981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090115/509b85ce/attachment.bin>

More information about the llvm-commits mailing list