1. 19 Oct, 2016 3 commits
  2. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      Replace CMake per-source copyright/license notice headers with a short
      description of the license and lin...
  3. 03 Sep, 2016 1 commit
  4. 16 Aug, 2016 1 commit
  5. 02 Aug, 2016 3 commits
  6. 28 Jun, 2016 1 commit
  7. 24 May, 2016 1 commit
  8. 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.
  9. 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.
  10. 16 Sep, 2015 1 commit
  11. 13 Apr, 2015 2 commits
  12. 08 Apr, 2015 1 commit
  13. 07 Apr, 2015 2 commits
  14. 06 Apr, 2015 2 commits
  15. 10 Mar, 2015 1 commit
  16. 18 Jan, 2015 1 commit
  17. 13 Jan, 2015 1 commit
  18. 23 Nov, 2014 1 commit
  19. 08 Mar, 2014 1 commit
  20. 12 Nov, 2013 1 commit
    • Brad King's avatar
      Refactor internal resource location APIs and initialization · d1526f82
      Brad King authored
      Rename cmSystemTools::FindExecutableDirectory to FindCMakeResources.
      Teach it to compute the locations of cmake, ctest, cpack, ccmake, and
      cmake-gui executables, and the location of CMAKE_ROOT.  Provide this
      information from static cmSystemTools::Get<resource>() methods.
      Refactor code that needs these locations to use the new APIs.
      Teach FindCMakeResources to use the OS X system API to lookup the
      executable location.  When running from the CMake build tree itself,
      leave a file in the tree that FindCMakeResources can use to read the
      location of the source tree.  This avoids the need to compile the source
      tree location into a binary that may be installed and used without the
      source tree.
      Teach the QtDialog on OS X to create a "cmake-gui" symlink in the build
      tree next to "cmake" and the other tools, as is already done in the
      install tree for the application bundle.  This ensures a consistent set
      of executables are available in one directory.
  21. 06 Feb, 2012 1 commit
    • Nicolas Despres's avatar
      ccmake: Extend clear line. · 415ffda7
      Nicolas Despres authored
      When configuring or generating the 'ng' of the end of the second line
      is not cleared.  This patch fixes this.
      The problem was introduced by commit fd632195 (ccmake: Align 'g' and 'q'
      key instructions, 2011-01-07) which adjusted the length of lines that
      need clearing.
  22. 05 Feb, 2012 1 commit
  23. 23 Oct, 2011 4 commits
  24. 19 Jan, 2011 1 commit
  25. 13 Jan, 2011 1 commit
  26. 16 Sep, 2010 1 commit
    • Brad King's avatar
      ccmake: Fix search with '/' · 5d7c3c0a
      Brad King authored
      Commit 7a18dd8e (Add searching of variables, 2003-03-07) added method
      cmCursesMainForm::JumpToCacheEntry to search for cache entries whose
      names match a given search string.  The method also had a useless
      argument "int idx" probably left from earlier development iterations and
      hard-coded in all calls to the value '-1'.  The method compared this
      argument to the "NumberOfVisibleEntries" member which at the time was of
      type "int" also.
      Commit ff1f8d0b (Fix or cast more integer conversions in cmake,
      2010-06-29) changed the type of "NumberOfVisibleEntries" to size_t to
      fix other integer conversion warnings.  An unsigned type makes sense
      given the purpose of the member.  However, this caused the '-1' signed
      value to be converted to a large unsigned value in the above-mentioned
      comparison, leading to incorrect behavior.
      Fix the problem by removing the useless argument and the comparison.
  27. 29 Jun, 2010 2 commits
  28. 09 Oct, 2009 1 commit