summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
Commit message (Collapse)AuthorAgeFilesLines
* Add PrintVersionMessage() that tools can use to print version numberDevang Patel2007-02-011-0/+1
| | | | | | without exiting program. llvm-svn: 33737
* simplify trivial functionChris Lattner2006-10-121-5/+1
| | | | llvm-svn: 30924
* Add external definitions for commonly-used template specializations and addChris Lattner2006-08-271-2/+37
| | | | | | | | anchor methods to others. This eliminates the vtable/template method bloat in .o files that defining a cl::opt used to impose (~4K per .o file for one cp::opt<unsigned>). llvm-svn: 29909
* Add an out-of-line virtual method to provide a home for the cl::option class.Chris Lattner2006-07-181-0/+3
| | | | llvm-svn: 29191
* Make it possible to override the standard version printer. Not all toolsReid Spencer2006-06-051-0/+7
| | | | | | | | | built with CommandLine.h will want the --version option to report that the tool belongs to LLVM. To override simply pass a void func() to the cl::SetVersionPrinter() function and that void func() will be called when it is time to print the version information. llvm-svn: 28687
* Don't use old-style casts. This prevents compiler warnings when CommandLine.hReid Spencer2006-05-121-2/+2
| | | | | | | is used in projects that have stricter warning control than LLVM. This also helps us find casts more easily if we ever need to. llvm-svn: 28263
* Move the END_WITH_NULL marker. Vladimir suggests that this works better withChris Lattner2005-10-241-7/+2
| | | | | | GCC 4.1. I tried it with 4.0 and 3.3 and it seems fine. llvm-svn: 23957
* Work around GCC's dislike of attributes on function definitions.Jeff Cohen2005-10-231-1/+6
| | | | llvm-svn: 23896
* When a function takes a variable number of pointer arguments, with a zeroJeff Cohen2005-10-231-1/+2
| | | | | | | | | | | | | pointer marking the end of the list, the zero *must* be cast to the pointer type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will not extend the zero to 64 bits, thus allowing the upper 32 bits to be random junk. The new END_WITH_NULL macro may be used to annotate a such a function so that GCC (version 4 or newer) will detect the use of un-casted zero at compile time. llvm-svn: 23888
* Fix errors when compiling with -pedanticChris Lattner2005-10-141-5/+5
| | | | llvm-svn: 23719
* Change unsigned lng to unsigned.Jim Laskey2005-08-261-7/+7
| | | | llvm-svn: 23077
* Added cl::bits option type (bit vectors). See "Collecting options as a setJim Laskey2005-08-251-0/+182
| | | | | | of flags" in the Command Line doc. llvm-svn: 23067
* Eliminate tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | llvm-svn: 22520
* Make sure a variable is initialized before use to clean up a warning fromReid Spencer2005-06-181-1/+2
| | | | | | GCC 4.0.0 in release build. llvm-svn: 22248
* silence a huge number of bogus warnings with GCC 4 on Reid's tester.Chris Lattner2005-06-171-1/+2
| | | | llvm-svn: 22244
* Change some old-style casts to C++ style casts to avoid warnings in XPSReid Spencer2005-04-221-4/+4
| | | | | | | | compilation. This change has been waiting in the wings for a long time but since Misha just did a global change, I figured now was the time to commit it. llvm-svn: 21431
* Remove trailing whitespaceMisha Brukman2005-04-211-23/+23
| | | | llvm-svn: 21411
* Added a size_type typedef to LLVM containers to make Visual Studio shut upReid Spencer2004-12-131-1/+1
| | | | | | (and possibly to make LLVM more x86 64bit friendly). llvm-svn: 18891
* Make a const method constReid Spencer2004-12-051-1/+1
| | | | llvm-svn: 18524
* Per code review:Reid Spencer2004-11-161-7/+13
| | | | | | *Implement/Document the cl::extrahelp feature instead of the MoreHelp ptr. llvm-svn: 17871
* Add the MoreHelp function pointer. If non-null, this specifies a function to ↵Reid Spencer2004-11-141-0/+8
| | | | | | be called to print out additional help information llvm-svn: 17756
* Convert 'struct' to 'class' in various places to adhere to the coding standardsChris Lattner2004-10-271-14/+18
| | | | | | and work better with VC++. Patch contributed by Morten Ofstad! llvm-svn: 17281
* Changes For Bug 352Reid Spencer2004-09-011-0/+1049
| | | | | | | | 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
* Move support directoryChris Lattner2001-11-291-399/+0
| | | | llvm-svn: 1401
* 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