1. 16 May, 2016 1 commit
    • 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.
  2. 25 Sep, 2015 1 commit
    • Brad King's avatar
      Ninja: Centralize path conversion in global generator (#15757) · 6e2a4087
      Brad King authored
      In the Ninja generator we run all build rules from the top of the build
      tree rather than changing into each subdirectory.  Therefore we convert
      all paths relative to the HOME_OUTPUT directory.  However, the Convert
      method on cmLocalGenerator restricts relative path conversions to avoid
      leaving the build tree with a "../" sequence.  Therefore conversions
      performed for "subdirectories" that are outside the top of the build
      tree always use full paths while conversions performed for
      subdirectories that are inside the top of the build tree may use
      relative paths to refer to the same files.
      Since Ninja always runs rules from the top of the build tree we should
      convert them using only the top-level cmLocalGenerator in order to
      remain consistent.  Also extend the test suite with a case that fails
      without this fix.
  3. 13 Aug, 2012 1 commit
    • 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
  4. 09 Oct, 2006 1 commit