1. 16 May, 2016 2 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
    • Roger Leigh's avatar
      FindBoost: Add checks for component-specific headers · c2e8d515
      Roger Leigh authored
      This supplements the existing library checks, to
      cater for the possibility that the libraries are
      present but the headers are not.  This can happen
      when the Boost collections is split up into
      multiple packages and not all are installed,
      and will avoid the checks silently passing when
      the build would subsequently fail.
      c2e8d515
  2. 14 May, 2016 3 commits
  3. 13 May, 2016 8 commits
  4. 12 May, 2016 3 commits
  5. 11 May, 2016 1 commit
  6. 09 May, 2016 3 commits
    • Chuck Atkins's avatar
      HDF5: Refactor the use of compiler wrappers · 00405af0
      Chuck Atkins authored
       * Make work with HDF5 compiler wrappers as the primary compiler (Cray)
       * Accept options used by compiler wrappers instead of just seeding
         search parameters
       * Only search for libraries if the first 2 fail
      00405af0
    • Brad King's avatar
      Remove `//------...` horizontal separator comments · 0ac18d40
      Brad King authored
      Modern editors provide plenty of ways to visually separate functions.
      Drop the explicit comments that previously served this purpose.
      Use the following command to automate the change:
      
          $ git ls-files -z -- \
              "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" |
            egrep -z -v "^Source/cmCommandArgumentLexer\." |
            egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmDependsJavaLexer\." |
            egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmExprLexer\." |
            egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmFortranLexer\." |
            egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmListFileLexer\." |
            egrep -z -v "^Source/cm_sha2" |
            egrep -z -v "^Source/(kwsys|CursesDialog/form)/" |
            egrep -z -v "^Utilities/(KW|cm).*/" |
            xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}'
      
      This avoids modifying third-party sources and generated sources.
      0ac18d40
    • Anders Bakken's avatar
      FindLua: Add library name for Lua 5.3 on homebrew · 25f34dea
      Anders Bakken authored
      Homebrew installs lua 5.3 like this:
      
          Cellar/lua53/5.3.2_2/lib/liblua.5.3.2.dylib
          Cellar/lua53/5.3.2_2/lib/liblua.5.3.dylib
          lib/liblua.5.3.2.dylib
          lib/liblua.5.3.dylib
      
      Add the `liblua.{$VERSION}` naming scheme to our searched names.
      25f34dea
  7. 06 May, 2016 1 commit
  8. 03 May, 2016 2 commits
  9. 02 May, 2016 2 commits
  10. 29 Apr, 2016 2 commits
    • Brad King's avatar
      Format include directive blocks and ordering with clang-format · e1c77472
      Brad King authored
      Sort include directives within each block (separated by a blank line) in
      lexicographic order (except to prioritize `sys/types.h` first).  First
      run `clang-format` with the config file:
      
          ---
          SortIncludes: false
          ...
      
      Commit the result temporarily.  Then run `clang-format` again with:
      
          ---
          SortIncludes: true
          IncludeCategories:
            - Regex:    'sys/types.h'
              Priority: -1
          ...
      
      Commit the result temporarily.  Start a new branch and cherry-pick the
      second commit.  Manually resolve conflicts to preserve indentation of
      re-ordered includes.  This cleans up the include ordering without
      changing any other style.
      
      Use the following command to run `clang-format`:
      
          $ git ls-files -z -- \
              '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
            egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
            egrep -z -v '^Source/cm_sha2' |
            egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
            egrep -z -v '^Utilities/(KW|cm).*/' |
            egrep -z -v '^Tests/Module/GenerateExportHeader' |
            egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
            xargs -0 clang-format -i
      
      This selects source files that do not come from a third-party.
      Inspired-by: Daniel Pfeifer's avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
      e1c77472
    • Brad King's avatar
      Modules: Remove unused CMakeTestWatcomVersion.c file · d7a5f255
      Brad King authored
      This file has not been used since commit v2.8.10~218^2~7^2 (Watcom:
      Simplify compiler version detection, 2012-08-13).
      d7a5f255
  11. 28 Apr, 2016 7 commits
  12. 27 Apr, 2016 1 commit
  13. 20 Apr, 2016 2 commits
  14. 19 Apr, 2016 3 commits