1. 16 May, 2016 19 commits
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d9fd2f54
  2. 13 Aug, 2012 19 commits
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      Ancient versions of CMake required else(), endif(), and similar block
      termination commands to have arguments matching the command starting the
      block.  This is no longer the preferred style.
      
      Run the following shell code:
      
      for c in else endif endforeach endfunction endmacro endwhile; do
          echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      9db31162
    • Kitware Robot's avatar
      Convert CMake-language commands to lower case · 77543bde
      Kitware Robot authored
      Ancient CMake versions required upper-case commands.  Later command
      names became case-insensitive.  Now the preferred style is lower-case.
      
      Run the following shell code:
      
      cmake --help-command-list |
      grep -v "cmake version" |
      while read c; do
          echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      77543bde
    • Kitware Robot's avatar
      Remove trailing whitespace from most CMake and C/C++ code · 7bbaa428
      Kitware Robot authored
      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/ \+$//'
      7bbaa428
  3. 17 Dec, 2010 19 commits
  4. 15 Dec, 2010 19 commits
  5. 11 Aug, 2009 19 commits
    • Brad King's avatar
      Test add_test() generator expressions · 875c478b
      Brad King authored
      This teaches the 'testing' test to try generator expressions in
      arguments to add_test(NAME).  This test case mimics a common use-case of
      passing executables to test driver scripts.  We excercise the syntax for
      per-configuration target file names.
      875c478b
  6. 16 Mar, 2009 19 commits
    • Brad King's avatar
      ENH: Add NAME mode to ADD_TEST command · 9862f383
      Brad King authored
      This creates command mode add_test(NAME ...).  This signature is
      extensible with more keyword arguments later.  The main purpose is to
      enable automatic replacement of target names with built target file
      locations.  A side effect of this feature is support for tests that only
      run under specific configurations.
      9862f383
  7. 18 Dec, 2008 19 commits
  8. 25 Mar, 2008 19 commits
  9. 08 Jun, 2005 19 commits
  10. 27 Mar, 2002 19 commits
  11. 26 Mar, 2002 19 commits
  12. 25 Feb, 2002 19 commits
  13. 22 Jan, 2002 19 commits
  14. 20 Jan, 2002 19 commits
  15. 19 Jan, 2002 19 commits