summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* MERRY CHRISTMAS EVERYONE!!! (what better way to spend christmas thanDuraid Madina2005-12-261-0/+1
| | | | | | | to try building LLVM on HP-UX! (the Right Way seems to be to tear out the ancient STL that HP ship and use http://incubator.apache.org/stdcxx/ ) llvm-svn: 25012
* indicate when a tool is a debug build.Chris Lattner2005-11-161-1/+6
| | | | llvm-svn: 24374
* Allow tools with "consume after" options (like lli) to take more positionalChris Lattner2005-08-081-4/+1
| | | | | | | opts than they take directly. Thanks to John C for pointing this problem out to me! llvm-svn: 22717
* Reject command lines that have too many positional arguments passed (e.g.,Chris Lattner2005-08-081-1/+15
| | | | | | | | 'opt x y'). This fixes PR493. Patch contributed by Owen Anderson! llvm-svn: 22705
* CapitalizeChris Lattner2005-05-131-3/+3
| | | | llvm-svn: 21964
* Do not use "" as a sentinal for a missing argument! This fixes PR560.Chris Lattner2005-05-101-11/+12
| | | | llvm-svn: 21850
* Remove trailing whitespaceMisha Brukman2005-04-211-38/+38
| | | | llvm-svn: 21422
* Work around GCC PR19958, which causes programs to sometimes crash afterChris Lattner2005-02-141-0/+2
| | | | | | printing help output or version info. llvm-svn: 20180
* Implement and document prefix options with arbitrary values including anReid Spencer2004-11-241-1/+1
| | | | | | | = sign. This needed to support -DNAME=value options as pass-through in llvmc. llvm-svn: 18203
* Fixed assertion from triggering. We need to check if the commandline map is ↵Tanya Lattner2004-11-201-0/+2
| | | | | | empty before checking if an arg exists. llvm-svn: 18057
* Patches to avoid "leaking" memory on process exit. Patch contributed byChris Lattner2004-11-191-39/+25
| | | | | | Morten Ofstad! llvm-svn: 17998
* Add a comment to some code that at first glance just doesn't look right.Reid Spencer2004-11-161-0/+6
| | | | llvm-svn: 17886
* Per code review:Reid Spencer2004-11-161-5/+24
| | | | | | *Implement/Document the cl::extrahelp feature instead of the MoreHelp ptr. llvm-svn: 17871
* Implement the MoreHelp utility that calls a function to printmore help ↵Reid Spencer2004-11-141-0/+10
| | | | | | information if the MoreHelp global is not null. llvm-svn: 17774
* Replace uses of llvm.org with llvm.cs.uiuc.eduMisha Brukman2004-11-071-1/+1
| | | | llvm-svn: 17549
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | 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
* Make CommandLine prefix error output with the name of the program.Reid Spencer2004-09-011-13/+20
| | | | llvm-svn: 16129
* Allow any cl::opt to use the method getPosition() to retrieve the option'sReid Spencer2004-08-131-19/+32
| | | | | | | | | | | | | 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 --version option for every tool that prints out:Reid Spencer2004-08-041-1/+18
| | | | | | Low Level Virtual Machine ($PACKAGE_NAME) $PACKAGE_VERSION llvm-svn: 15454
* Add a workaround for a GCC 3.3.2 bugChris Lattner2004-07-181-1/+6
| | | | llvm-svn: 14976
* Fix compilation on internixChris Lattner2004-07-031-0/+1
| | | | llvm-svn: 14588
* Implement the new cl::PositionalEatsArgs flag, refactor code a bitChris Lattner2004-05-061-52/+65
| | | | llvm-svn: 13388
* Hide variable from other functions.Alkis Evlogimenos2004-03-041-2/+3
| | | | llvm-svn: 12118
* Finegrainify namespacificationChris Lattner2003-12-141-4/+1
| | | | llvm-svn: 10464
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Change to use strtoul instead of strtoll.Brian Gaeke2003-10-101-2/+7
| | | | llvm-svn: 9010
* Add missing apostrophe. It's been bugging me for years.Brian Gaeke2003-09-161-1/+1
| | | | | | No really, years. llvm-svn: 8566
* Fixed spelling & grammar.Misha Brukman2003-09-161-1/+1
| | | | llvm-svn: 8559
* lib/Support/CommandLine.cpp:Brian Gaeke2003-08-151-46/+51
| | | | | | | | | | | | | | | | | 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
* Add support for reading command line arguments from an environment variable.Brian Gaeke2003-08-141-0/+74
| | | | llvm-svn: 7851
* Add support for "named positional arguments"Chris Lattner2003-07-301-15/+34
| | | | llvm-svn: 7421
* Fixed grammatical error.Misha Brukman2003-07-101-1/+1
| | | | llvm-svn: 7160
* Lowercase versions of `occurrence' need to be spelled correctly, too.Misha Brukman2003-07-101-15/+15
| | | | llvm-svn: 7142
* `Occurrence' has no `a' and the `r' is doubled.Misha Brukman2003-07-101-21/+21
| | | | llvm-svn: 7140
* Add support for 'unsigned' command line argumentsChris Lattner2003-06-281-2/+13
| | | | llvm-svn: 6928
* Add new CommaSeparated option modifierChris Lattner2003-05-221-0/+20
| | | | llvm-svn: 6294
* Destroy using declarationsChris Lattner2003-05-221-64/+60
| | | | llvm-svn: 6291
* Simplify writing custom parsers.Chris Lattner2002-08-071-76/+48
| | | | llvm-svn: 3256
* Fix lli with no argumentsChris Lattner2002-08-021-1/+1
| | | | llvm-svn: 3226
* Fix bug that was causing problems for lliChris Lattner2002-07-311-1/+1
| | | | llvm-svn: 3176
* * Fix assertion failure caused by command line argument getting removed afterChris Lattner2002-07-291-15/+35
| | | | | | | the map was freed. * Cleanup code a bit llvm-svn: 3121
* Remove needless #includeChris Lattner2002-07-271-1/+0
| | | | llvm-svn: 3117
* *** empty log message ***Chris Lattner2002-07-251-2/+2
| | | | llvm-svn: 3075
* Fix a bug exposed by lliChris Lattner2002-07-241-2/+11
| | | | llvm-svn: 3049
* *** empty log message ***Chris Lattner2002-07-231-0/+32
| | | | llvm-svn: 2999
* Minor bugfix, prevents error in LLIChris Lattner2002-07-221-4/+6
| | | | llvm-svn: 2989
* Checkin CommandLine 2.0Chris Lattner2002-07-221-242/+445
| | | | llvm-svn: 2982
* Add ability to update existing variables with values read from the command lineChris Lattner2002-05-221-1/+1
| | | | | | | | | 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
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-1/+0
| | | | llvm-svn: 2397
OpenPOWER on IntegriCloud