summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] More 'nullptr' conversion. In some cases just using a boolean check ↵Craig Topper2014-04-141-1/+1
| | | | | | instead of comparing to nullptr. llvm-svn: 206142
* [C++11] Replace some comparisons with 'nullptr' with simple boolean checks ↵Craig Topper2014-04-091-1/+1
| | | | | | to reduce verbosity. llvm-svn: 205829
* [C++11] Make use of 'nullptr' in the Support library.Craig Topper2014-04-071-13/+14
| | | | llvm-svn: 205697
* [C++11] Replace LLVM-style type traits with C++11 standard ones.Benjamin Kramer2014-03-071-3/+2
| | | | | | No functionality change. llvm-svn: 203242
* [C+11] Add 'override' keyword to methods in the support library.Craig Topper2014-03-041-51/+57
| | | | llvm-svn: 202791
* Switch all uses of LLVM_OVERRIDE to just use 'override' directly.Craig Topper2014-03-021-5/+5
| | | | llvm-svn: 202621
* Re-apply r200853, which should not crash after Clang plugins were converted ↵Alexander Kornienko2014-02-271-2/+2
| | | | | | to loadable modules in r201256. llvm-svn: 202404
* Avoid collisions with Objective-C++ keywordsTobias Grosser2014-02-191-6/+6
| | | | | | | | Change parameter names exposed in headers to avoid collisions with Objective-C++ keywords. Contributed-by: Graham Lee <graham@iamleeg.com> llvm-svn: 201727
* Revert "Fix an invalid check for duplicate option categories."Rafael Espindola2014-02-051-2/+2
| | | | | | | | This reverts commit r200853. It was causing clang/Analysis/checker-plugins.c to crash. llvm-svn: 200858
* Fix an invalid check for duplicate option categories.Alexander Kornienko2014-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | Summary: The check performed in the comparator is invalid, as some STL implementations enforce strict weak ordering by calling the comparator with the same value. This check was also in a wrong place: the assertion would only fire when -help was used. The new check is performed each time the category is registered (we are not going to have thousands of them, so it's fine to do it in O(N^2)). Reviewers: jordan_rose Reviewed By: jordan_rose CC: cfe-commits, alexmc Differential Revision: http://llvm-reviews.chandlerc.com/D2699 llvm-svn: 200853
* [CommandLine] Aliases require an value if their target requires a value.Jordan Rose2014-01-291-0/+10
| | | | | | | | | This can still be overridden by explicitly setting a value requirement on the alias option, but by default it should be the same. PR18649 llvm-svn: 200407
* Re-sort all of the includes with ./utils/sort_includes.py so thatChandler Carruth2014-01-071-1/+1
| | | | | | | | | | subsequent changes are easier to review. About to fix some layering issues, and wanted to separate out the necessary churn. Also comment and sink the include of "Windows.h" in three .inc files to match the usage in Memory.inc. llvm-svn: 198685
* [weak vtables] Remove a bunch of weak vtablesJuergen Ributzka2013-11-191-0/+4
| | | | | | | | | | | | This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. The memory leaks in this version have been fixed. Thanks Alexey for pointing them out. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 195064
* Revert r194865 and r194874.Alexey Samsonov2013-11-181-4/+0
| | | | | | | | | | | | This change is incorrect. If you delete virtual destructor of both a base class and a subclass, then the following code: Base *foo = new Child(); delete foo; will not cause the destructor for members of Child class. As a result, I observe plently of memory leaks. Notable examples I investigated are: ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl. llvm-svn: 194997
* [weak vtables] Remove a bunch of weak vtablesJuergen Ributzka2013-11-151-0/+4
| | | | | | | | | | | This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 194865
* Fix -Wdocumentation warningHans Wennborg2013-07-181-1/+1
| | | | | | | s/Tokenize/Tokenizer/ to make the comment correspond to the parameter name llvm-svn: 186608
* [Support] Beef up and expose the response file parsing in llvm::clReid Kleckner2013-07-181-0/+53
| | | | | | | | | | | | | | | | | | | The plan is to use it for clang and lld. Major behavior changes: - We can now parse UTF-16 files that have a byte order mark. - PR16209: Don't drop backslashes on the floor if they don't escape anything. The actual parsing loop was based on code from Clang's driver.cpp, although it's been rewritten to track its state with control flow rather than state variables. Reviewers: hans Differential Revision: http://llvm-reviews.chandlerc.com/D1170 llvm-svn: 186587
* Fix 'gcc -flto' builds for unittest binaries (undefined reference toPatrik Hagglund2013-06-121-2/+0
| | | | | | | | | `typeinfo for llvm::cl::GenericOptionValue'). Remove an "anchor" method for an abstract class. (This does not increase the number of vtables.) llvm-svn: 183830
* Use correct parameter names in comments [-Wdocumentation]Dmitri Gribenko2013-05-081-3/+3
| | | | llvm-svn: 181478
* Implemented public interface for modifying registered (not positional or ↵Andrew Trick2013-05-061-0/+34
| | | | | | | | sink options) command line options at runtime. Patch by Dan Liew! llvm-svn: 181254
* Support command line option categories.Andrew Trick2013-05-061-8/+42
| | | | | | Patch by Dan Liew! llvm-svn: 181253
* Generalize my previous fix for -print-options.Andrew Trick2013-03-061-1/+1
| | | | | | | Always print options that differ from their implicit default. At least for simple option types. llvm-svn: 176572
* 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
OpenPOWER on IntegriCloud