Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge topic 'consistent-empty-method' | Brad King | 2015-01-19 | 1 | -5/+5 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f69314e Replace foo.length() pattern with !foo.empty(). fd0c036c Replace 'foo.length() >= 1' pattern with !foo.empty() f09fde2d Replace 'foo.length() > 0' pattern with !foo.empty(). 86b5bdfa Replace 'foo.length() == 0' pattern with foo.empty(). fd7b3712 Replace foo.size() pattern with !foo.empty(). aa773035 Replace !foo.size() pattern with foo.empty(). 64592633 cmListCommand: Use empty() and expand whitespace. 607e1938 Replace 'foo.size() != 0' pattern with !foo.empty(). 930bd478 Replace 'foo.size() == 0' pattern with foo.empty(). d92887ef Replace 'foo.size() > 0' pattern with !foo.empty(). | ||||
| * | Replace foo.size() pattern with !foo.empty(). | Stephen Kelly | 2015-01-18 | 1 | -1/+1 |
| | | |||||
| * | cmListCommand: Use empty() and expand whitespace. | Stephen Kelly | 2015-01-18 | 1 | -1/+1 |
| | | |||||
| * | Replace 'foo.size() != 0' pattern with !foo.empty(). | Stephen Kelly | 2015-01-18 | 1 | -1/+1 |
| | | |||||
| * | Replace 'foo.size() == 0' pattern with foo.empty(). | Stephen Kelly | 2015-01-18 | 1 | -2/+2 |
| | | |||||
* | | cmListCommand: Replace loop with member algorithm. | Stephen Kelly | 2015-01-18 | 1 | -7/+3 |
|/ | |||||
* | Merge topic 'join-algorithm' | Brad King | 2015-01-12 | 1 | -27/+3 |
|\ | | | | | | | | | | | | | 55a73e6b Use the cmJoin algorithm where possible. 8dc8d756 cmStandardIncludes: Add a join algorithm for string containers. b5813cee cmInstallCommand: Remove unused variable. | ||||
| * | Use the cmJoin algorithm where possible. | Stephen Kelly | 2015-01-08 | 1 | -27/+3 |
| | | |||||
* | | Port all cmOStringStream to std::ostringstream. | Stephen Kelly | 2015-01-11 | 1 | -4/+4 |
|/ | | | | All compilers hosting CMake support the std class. | ||||
* | Remove some c_str() calls. | Stephen Kelly | 2014-03-11 | 1 | -28/+28 |
| | | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms. | ||||
* | stringapi: Use strings for variable names | Ben Boeckel | 2014-03-08 | 1 | -6/+4 |
| | | | | Variable names are always generated by CMake and should never be NULL. | ||||
* | Consolidate list() argument count testing | Petr Kmoch | 2012-11-02 | 1 | -26/+10 |
| | | | | Move test for list() argument count >= 2 to InitialPass(). | ||||
* | list command: error on too many arguments | Rolf Eike Beer | 2012-08-15 | 1 | -0/+18 |
| | | | | | SORT, REVERSE, and REMOVE_DUPLICATES can only operate on exactly one argument. Until now all other arguments were silently ignored. Give an error instead. | ||||
* | Remove trailing whitespace from most CMake and C/C++ code | Kitware Robot | 2012-08-13 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//' | ||||
* | list: Handle errors on empty lists more gracefully (#13138) | Brad King | 2012-04-17 | 1 | -1/+14 |
| | | | | | | | | | | | | Since commit ed1ea24c (Fix INSERT to allow inserting to empty list, 2006-05-15) the list command allows insertion into an empty list at index 0. Fix rejection of insertion at non-zero (negative) indices to present an error message instead of crashing. While at it, fix the error message of the GET and REMOVE_AT operations when the list is empty to not present a bogus allowed range. Add a "RunCMake.list" test to cover failure cases on empty lists. | ||||
* | Convert CMake to OSI-approved BSD License | Brad King | 2009-09-28 | 1 | -14/+9 |
| | | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range. | ||||
* | BUG: fix failing test | Bill Hoffman | 2008-05-20 | 1 | -3/+4 |
| | |||||
* | BUG: fix bugs in new style list command that handles empty stuff | Bill Hoffman | 2008-05-20 | 1 | -57/+24 |
| | |||||
* | ENH: fix sort to work with CMP0007 | Bill Hoffman | 2008-05-07 | 1 | -0/+6 |
| | |||||
* | ENH: handle empty lists correctly | Bill Hoffman | 2008-04-23 | 1 | -0/+5 |
| | |||||
* | ENH: fix list command with empty elements | Bill Hoffman | 2008-04-21 | 1 | -2/+56 |
| | |||||
* | STYLE: yeah yeah. | Sebastien Barre | 2008-03-14 | 1 | -2/+4 |
| | |||||
* | ENH: add REMOVE_DUPLICATES subcommand to LIST command (and test). Remove ↵ | Sebastien Barre | 2008-03-12 | 1 | -0/+66 |
| | | | | duplicates from a list (keep the ordering) | ||||
* | ENH: add return and break support to cmake, also change basic command ↵ | Ken Martin | 2008-01-23 | 1 | -1/+2 |
| | | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class | ||||
* | ENH: Allow LIST(APPEND) command to append nothing. | Brad King | 2008-01-16 | 1 | -2/+8 |
| | |||||
* | ENH: change LIST(CONTAINS ...) TO LIST(FIND ...), which returns the index | Alexander Neundorf | 2007-08-15 | 1 | -7/+11 |
| | | | | | | | | and which is more useful, because then you can also access the item behind the one you were looking, useful for writing macros with optional keywords with parameters Alex | ||||
* | ENH: add LIST(CONTAINS ...) patch from "Miguel A. Figueroa-Villanueva, ↵ | Alexander Neundorf | 2007-07-12 | 1 | -0/+37 |
| | | | | | | | | miguelf (AT) ieee.org added tests for LIST(CONTAINS, SORT, REVERSE) Alex | ||||
* | STYLE: Fixed line-too-long. | Brad King | 2006-08-26 | 1 | -1/+1 |
| | |||||
* | BUG: Add missing API | Andy Cedilnik | 2006-08-22 | 1 | -0/+78 |
| | |||||
* | BUG: Fix error messages and fix remove item to actually remove all instances ↵ | Andy Cedilnik | 2006-08-22 | 1 | -3/+8 |
| | | | | of the item | ||||
* | STYLE: Fix style | Andy Cedilnik | 2006-05-16 | 1 | -11/+12 |
| | |||||
* | ENH: Fix INSERT to allow inserting to empty list | Andy Cedilnik | 2006-05-15 | 1 | -14/+17 |
| | |||||
* | ENH: Change REMOVE and REMOVE_ITEM to REMOVE_AT and REMOVE_ITEM | Andy Cedilnik | 2006-05-15 | 1 | -5/+5 |
| | |||||
* | ENH: Remove some errors, fix append to work on nonexisting lists | Andy Cedilnik | 2006-05-15 | 1 | -17/+15 |
| | |||||
* | STYLE: fix line length | Ken Martin | 2006-05-12 | 1 | -5/+13 |
| | |||||
* | ENH: Some documentation and add APPEND | Andy Cedilnik | 2006-05-11 | 1 | -1/+1 |
| | |||||
* | ENH: add support for win64 for visual studio 2005 ide and nmake, also fix ↵ | Bill Hoffman | 2006-03-30 | 1 | -9/+9 |
| | | | | warnings produced by building for win64 | ||||
* | ENH: allow unset vars to be used in list length | Bill Hoffman | 2006-03-24 | 1 | -5/+4 |
| | |||||
* | STYLE: some m_ to this-> cleanup | Ken Martin | 2006-03-15 | 1 | -7/+7 |
| | |||||
* | ENH: Add initial implementation of the list command | Andy Cedilnik | 2006-02-10 | 1 | -0/+359 |