Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

  1. 23 Jun, 2016 1 commit
  2. 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.
  3. 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
            - 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>
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
  4. 07 Apr, 2016 1 commit
  5. 24 Oct, 2015 1 commit
  6. 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.
  7. 27 Jul, 2015 1 commit
  8. 09 Jul, 2015 7 commits
  9. 22 Jun, 2015 1 commit
  10. 18 May, 2015 1 commit
    • Brad King's avatar
      Ninja: Generate separate compile and link rules for each target · a390de65
      Brad King authored
      Our <LANG>_COMPILER and <LANG>_<TARGET_TYPE>_LINKER rule generation has
      access to a specific cmTarget so the results may depend on it.  Instead
      generate separate rules for each target using an encoded target name.
      In particular, this makes CTEST_USE_LAUNCHERS report proper target
  11. 29 Jan, 2015 1 commit
    • Brad King's avatar
      Ninja: Use "deps = msvc" only for C and CXX (#15253) · 8a93d3ea
      Brad King authored
      The "/showIncludes" flag is only available with MS C and C++ compilers,
      and on compilers that "simulate" them (like Intel for Windows).  Fix our
      logic to choose this type only for MS tools with these languages.  All
      other cases need to use "deps = gcc" and define DEP_FILE in the build
  12. 14 Nov, 2014 1 commit
  13. 30 Jun, 2014 1 commit
    • Adam Strzelecki's avatar
      Ninja: Skip generating empty phony rules · 93371ed5
      Adam Strzelecki authored
      Ninja generator ensures that all custom commands being target
      dependencies are run before other source compilations. However in case
      there are no such dependencies it currently generates empty phony rules
      which clutter the build graph.
      Teach the Ninja generator to produce such rules only when necessary.
  14. 07 May, 2014 1 commit
  15. 02 May, 2014 1 commit
  16. 05 Apr, 2014 1 commit
  17. 13 Mar, 2014 2 commits
  18. 08 Mar, 2014 4 commits
  19. 13 Feb, 2014 1 commit
    • Ben Boeckel's avatar
      Ninja: Cache target-level flags · 26762e16
      Ben Boeckel authored
      Instead of figuring out target flags per-source file, cache the flags
      that are being used. This results in a *much* faster generate time for
  20. 25 Nov, 2013 1 commit
  21. 22 Nov, 2013 1 commit
  22. 24 Oct, 2013 1 commit
  23. 19 Sep, 2012 1 commit
  24. 22 Aug, 2012 2 commits
  25. 18 Jul, 2012 3 commits
  26. 17 Jul, 2012 1 commit