summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/CommandLine.h
Commit message (Collapse)AuthorAgeFilesLines
* Changes For Bug 352Reid Spencer2004-09-011-1049/+0
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Allow any cl::opt to use the method getPosition() to retrieve the option'sReid Spencer2004-08-131-24/+34
| | | | | | | | | | | | | absolute position on the command line. Similarly allow any cl::list to use the method getPosition(n) to retrieve the absolute position of the nth option in the list. This provides support for two things: (a) options like -l that are actually positional and their order of occurrence matters when they are intermixed with positional arguments like "a.o"; and (b) options like -x LANG which affect only the positional arguments that come after the option. In both cases, knowing the absolute position of a given option helps. llvm-svn: 15725
* Add a new macro to be used for the end of enum lists.Chris Lattner2004-07-161-0/+1
| | | | llvm-svn: 14862
* Provide better support for pointer-valued command line argumentsChris Lattner2004-07-111-0/+3
| | | | llvm-svn: 14746
* The prototype for ParseCommandLineOptions changed at some point, but thisChris Lattner2004-06-031-1/+1
| | | | | | was never updated. I guess GCC just ignores the prototype llvm-svn: 13995
* Add the enum corresponding to the source change I made earlierChris Lattner2004-05-071-2/+3
| | | | llvm-svn: 13395
* Use the new LLVM is_class template instead of the boost one, allowing us toChris Lattner2004-02-241-2/+3
| | | | | | remove our dependency on boost! Thanks to Reid Spencer for making this possible! llvm-svn: 11785
* Fixes for PR114: Thanks to Reid Spencer!Chris Lattner2003-11-161-6/+11
| | | | llvm-svn: 10029
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+3
| | | | llvm-svn: 9903
* Added LLVM notice.John Criswell2003-10-201-0/+7
| | | | llvm-svn: 9300
* Standardize header file commentsChris Lattner2003-09-301-1/+1
| | | | llvm-svn: 8782
* Changes to work better with GCC3.4/LLVM G++Chris Lattner2003-08-221-3/+6
| | | | llvm-svn: 8054
* Make assertion message more helpful in a case that might happen...Chris Lattner2003-08-191-1/+2
| | | | llvm-svn: 7975
* lib/Support/CommandLine.cpp:Brian Gaeke2003-08-151-1/+1
| | | | | | | | | | | | | | | | | Many changes suggested by Chris. It's okay, I'll recover from the emotional damage...maybe someday. :-) Collapse ParseCStringVector into ParseStringVector. Comment it. Make it take a const input. Use std::string::npos instead of -1 (what a mouthful!) Make ParseEnvironmentOptions take const inputs. Check its args at the very beginning. Strdup all the contents of newArgv and free them all at the end. include/Support/CommandLine.h: Constify progName and envVar arguments to ParseEnvironmentOptions(). llvm-svn: 7905
* Remove extraneous cl:: namespace qualifiersChris Lattner2003-08-141-4/+4
| | | | llvm-svn: 7852
* Add support for reading command line arguments from an environment variable.Brian Gaeke2003-08-141-0/+7
| | | | llvm-svn: 7851
* Add includes of assertChris Lattner2003-07-251-0/+1
| | | | llvm-svn: 7307
* The word `separate' only has one `e'.Misha Brukman2003-07-141-1/+1
| | | | llvm-svn: 7173
* Lowercase versions of `occurrence' need to be spelled correctly, too.Misha Brukman2003-07-101-6/+6
| | | | llvm-svn: 7142
* `Occurrence' has no `a' and the `r' is doubled.Misha Brukman2003-07-101-22/+22
| | | | llvm-svn: 7140
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-301-1/+0
| | | | | | system. llvm-svn: 7014
* Add support for 'unsigned' command line argumentsChris Lattner2003-06-281-0/+15
| | | | llvm-svn: 6928
* Remove a ton of extraneous #includesChris Lattner2003-06-221-1/+0
| | | | llvm-svn: 6842
* Regularize the names of #include-guards.Brian Gaeke2003-06-171-2/+2
| | | | llvm-svn: 6732
* Included assert.h so that the code compiles under newer versions of GCC.John Criswell2003-06-111-0/+2
| | | | llvm-svn: 6682
* Add doxygen comment for namespaceChris Lattner2003-06-031-1/+4
| | | | llvm-svn: 6579
* Add support for a new "CommaSeparated" modifierChris Lattner2003-05-221-3/+15
| | | | llvm-svn: 6293
* Checkin patch written by Casey Carter, enabling support for the redhat GCC 2.96Chris Lattner2002-09-131-0/+4
| | | | | | compiler. llvm-svn: 3697
* Simplify interface to parsers.Chris Lattner2002-08-071-92/+77
| | | | llvm-svn: 3255
* Changes to build with GCC 3.1Chris Lattner2002-07-241-11/+11
| | | | llvm-svn: 3064
* Add support for removing an option from a genericparserChris Lattner2002-07-231-1/+16
| | | | llvm-svn: 2998
* Change to avoid bug in GCC 3.0.4Chris Lattner2002-07-231-3/+4
| | | | llvm-svn: 2997
* Checkin CommandLine 2.0Chris Lattner2002-07-221-229/+762
| | | | llvm-svn: 2982
* Add ability to update existing variables with values read from the command lineChris Lattner2002-05-221-9/+48
| | | | | | | | | to certain classes. This is nice because it means that in header files we can just declare a value, and still have that value be set based on a command-line argument. The difference is now that the #include of CommandLine.h does not need to go into the header file as well. llvm-svn: 2708
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-18/+18
| | | | llvm-svn: 1503
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-271-0/+399
from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes llvm-svn: 1400
OpenPOWER on IntegriCloud