summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
Commit message (Collapse)AuthorAgeFilesLines
* Simplify code. No functionality change.Jakub Staszak2013-02-191-4/+2
| | | | llvm-svn: 175559
* Sort the #include lines for the include/... tree with the script.Chandler Carruth2012-12-031-2/+2
| | | | | | | | | | AKA: Recompile *ALL* the source code! This one went much better. No manual edits here. I spot-checked for silliness and grep-checked for really broken edits and everything seemed good. It all still compiles. Yell if you see something that looks goofy. llvm-svn: 169133
* Add missing this->. Fixes pr14238.Rafael Espindola2012-11-051-1/+1
| | | | llvm-svn: 167383
* Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplifiedRafael Espindola2012-10-091-4/+2
| | | | | | the test. llvm-svn: 165535
* Add LLVM_OVERRIDE to methods that override their base classes.Craig Topper2012-09-231-4/+5
| | | | llvm-svn: 164471
* Initializers for some fields were missing in Option::OptionAlexander Kornienko2012-07-131-4/+4
| | | | llvm-svn: 160170
* fix warnings when compiling with -WshadowNick Kledzik2012-05-181-2/+2
| | | | llvm-svn: 157061
* Correct use of const in ParseCommandLineOptionsDavid Blaikie2012-02-071-1/+1
| | | | llvm-svn: 149999
* Convert assert(0) to llvm_unreachableCraig Topper2012-02-051-1/+1
| | | | llvm-svn: 149849
* Reword comment based on feedback by Duncan Sands.David Blaikie2012-01-241-1/+1
| | | | llvm-svn: 148809
* Changing bitfield enums to unsigned ints.David Blaikie2012-01-231-7/+9
| | | | | | | This was suggested by Chandler Carruth on the basis of past experience with esoteric compilers/quirks relating to signed enums. llvm-svn: 148746
* Simplify llvm::cl::Option by using a bit field instead of manual bit packing.David Blaikie2012-01-231-74/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This still preserves the same total layout. Previously it looked like: *** Dumping AST Record Layout 0 | class llvm::cl::Option 0 | (Option vtable pointer) 8 | int NumOccurrences 12 | int Flags 16 | unsigned int Position 20 | unsigned int AdditionalVals 24 | class llvm::cl::Option * NextRegistered 32 | const char * ArgStr 40 | const char * HelpStr 48 | const char * ValueStr sizeof=56, dsize=56, align=8 nvsize=56, nvalign=8 Now it looks like: *** Dumping AST Record Layout 0 | class llvm::cl::Option 0 | (Option vtable pointer) 8 | int NumOccurrences 12 | enum NumOccurrencesFlag Occurrences 12 | unsigned int Value 12 | enum OptionHidden HiddenFlag 12 | enum FormattingFlags Formatting 13 | unsigned int Misc 16 | unsigned int Position 20 | unsigned int AdditionalVals 24 | class llvm::cl::Option * NextRegistered 32 | const char * ArgStr 40 | const char * HelpStr 48 | const char * ValueStr sizeof=56, dsize=56, align=8 nvsize=56, nvalign=8 llvm-svn: 148736
* Add some missing anchors.David Blaikie2011-12-011-0/+6
| | | | llvm-svn: 145578
* CommandLine: Add support for 64 bit unsigned integer options.Benjamin Kramer2011-09-151-0/+22
| | | | llvm-svn: 139848
* Add an extension point to the CommandLine library where clients canChandler Carruth2011-07-221-0/+9
| | | | | | | | | | | | register extra version information to be printed. This is designed to allow those tools which link in various targets to also print those registered targets under --version. Currently this printing logic is embedded into the Support library directly; a huge layering violation. This is the first step to hoisting it out into the tools without adding lots of duplicated code. llvm-svn: 135755
* Comment out some unused parameter names to silence out-of-tree -Wunused ↵Frits van Bommel2011-04-221-8/+8
| | | | | | warnings. llvm-svn: 129988
* Fix a typo.Andrew Trick2011-04-051-1/+1
| | | | llvm-svn: 128912
* Added *hidden* flags -print-options and -print-all-options soAndrew Trick2011-04-051-15/+280
| | | | | | | | | | | | | | | | | | | developers can see if their driver changed any cl::Option's. The current implementation isn't perfect but handles most kinds of options. This is nice to have when decomposing the stages of compilation and moving between different drivers. It's also a good sanity check when comparing results produced by different command line invocations that are expected to produce the comparable results. Note: This is not an attempt to prolong the life of cl::Option. On the contrary, it's a placeholder for a feature that must exist when cl::Option is replaced by a more appropriate framework. A new framework needs: a central option registry, dynamic name lookup, non-global containers of option values (e.g. per-module, per-function), *and* the ability to print options values and their defaults at any point during compilation. llvm-svn: 128910
* Trailing whitespace.Mikhail Glushenkov2010-08-101-2/+2
| | | | llvm-svn: 110679
* Some cleanup. Use a class (OptionInfo) instead of a pair of a pair and removeRafael Espindola2010-08-061-8/+15
| | | | | | some default values that are not used. llvm-svn: 110485
* Refer to -help instead of --help since this is what tools themselves say.Duncan Sands2010-02-181-8/+8
| | | | | | | | Also, have tools output -help-hidden rather than refer to --help-hidden, for consistency, and likewise adjust documentation. This doesn't change every mention of --help, only those which seemed clearly safe. llvm-svn: 96578
* enhance bits_storage to work with enums by using a c-styleChris Lattner2010-02-091-1/+1
| | | | | | | cast instead of reinterpret_cast, fixing PR6243. Apparently reinterpret_cast and I aren't getting along today. llvm-svn: 95622
* Add qualifiers for calls to member functions in dependent bases.Anders Carlsson2009-12-111-2/+2
| | | | llvm-svn: 91087
* Move llvm::cl::opt's conversion function into the base classes thatDouglas Gregor2009-11-051-2/+4
| | | | | | actually need that conversion function. Silences a Clang++ warning. llvm-svn: 86148
* Declare classes with matched tags, pointed out by a clang++ warning.Chris Lattner2009-11-051-2/+4
| | | | llvm-svn: 86144
* Remove a bunch of unused arguments from functions, silencing aEric Christopher2009-10-141-2/+2
| | | | | | warning. llvm-svn: 84130
* Rename enum NumOccurrences to NumOccurrencesFlag since there is a member ↵Evan Cheng2009-10-041-6/+8
| | | | | | named NumOccurrences. llvm-svn: 83273
* smallvectorize getExtraOptionNamesChris Lattner2009-09-201-6/+6
| | | | llvm-svn: 82377
* convert a bunch more stuff to use StringRef. The ArgName arguments are nowChris Lattner2009-09-201-19/+17
| | | | | | | | stringref because they may not be nul terminated. For options like -Lfoo this now avoids a O(n) temporary std::strings where N is the length of the string after -L. llvm-svn: 82345
* convert a bunch of std::strings to use StringRef. This should eliminateChris Lattner2009-09-191-28/+22
| | | | | | | a massive number of temporary strings created when parsing a command line. More still left to eliminate. llvm-svn: 82318
* Fix some comments referring to std::cerr.Daniel Dunbar2009-08-031-1/+1
| | | | llvm-svn: 77931
* Remove duplicated colons and spaces.Benjamin Kramer2009-08-021-7/+7
| | | | llvm-svn: 77892
* Fix comment.Mikhail Glushenkov2009-06-171-2/+2
| | | | llvm-svn: 73601
* Add support for a character after a command line option. Like '-Os'.Bill Wendling2009-04-291-0/+23
| | | | llvm-svn: 70437
* Remove AllowInverse: it leaks memory and is not the rightChris Lattner2009-04-081-5/+1
| | | | | | abstraction for CommandLine. llvm-svn: 68588
* Use CHAR_BIT instead of hard-coding 8 in several places where itDan Gohman2009-04-011-2/+3
| | | | | | | is appropriate. This helps visually differentiate host-oriented calculations from target-oriented calculations. llvm-svn: 68227
* * Fixed spelling of `invertible'Misha Brukman2009-04-011-5/+2
| | | | | | * Simplified if statement llvm-svn: 68163
* Constify check. This fixes PR3900.Bill Wendling2009-03-291-1/+1
| | | | llvm-svn: 68013
* move a large method out of line.Chris Lattner2009-03-281-16/+2
| | | | llvm-svn: 67892
* Allow invertable -xno- style optins as well.Mike Stump2009-03-271-4/+8
| | | | llvm-svn: 67862
* Fix the Win32 VS2008 build:Sebastian Redl2009-03-191-2/+2
| | | | | | | | | | - Make type declarations match the struct/class keyword of the definition. - Move AddSignalHandler into the namespace where it belongs. - Correctly call functions from template base. - Some other small changes. With this patch, LLVM and Clang should build properly and with far less noise under VS2008. llvm-svn: 67347
* Improve -fno-opt style option processing to not require an extraMike Stump2009-02-021-34/+25
| | | | | | | option to make the -fno- form on the option. We also document the new form in the CommandLine documentation. llvm-svn: 63559
* Add opposite_of and inverse_opt to support -fno- style options. ThisMike Stump2009-01-301-0/+33
| | | | | | is necessary for eventual gcc commmand line compatibility. llvm-svn: 63384
* Support for multi-valued options in CommandLineMikhail Glushenkov2009-01-161-2/+21
| | | | | | | Makes possible to specify options that take multiple arguments (a-la -sectalign on Darwin). See documentation for details. llvm-svn: 62372
* * Alphabetized system headers per the style guideMisha Brukman2009-01-021-3/+3
| | | | | | * Minor spacing and comment cleanups llvm-svn: 61590
* Silence a warning about "*/" outside a comment.Steve Naroff2008-05-201-1/+1
| | | | llvm-svn: 51287
* Remove warnings about unused parameters and shadowed variables.Bill Wendling2008-05-191-7/+7
| | | | llvm-svn: 51266
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-051-16/+18
| | | | llvm-svn: 50659
* Add support for response files to the CommandLine library.Mikhail Glushenkov2008-04-281-21/+23
| | | | llvm-svn: 50355
* Add explicit keywords.Dan Gohman2008-02-201-1/+1
| | | | llvm-svn: 47382
OpenPOWER on IntegriCloud