1. 19 Oct, 2016 2 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 links to `Copyright.txt` and online information
      available from "https://cmake.org/licensing".  The online URL also handles
      cases of modules being copied out of our source into other projects, so we
      can drop our notices about replacing links with full license text.
      
      Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
      of the replacements mechanically.  Manually fix up shebang lines and trailing
      newlines in a few files.  Manually update the notices in a few files that the
      script does not handle.
      86578ecc
  3. 25 Aug, 2016 1 commit
  4. 16 Aug, 2016 1 commit
  5. 28 Jun, 2016 1 commit
  6. 27 Jun, 2016 2 commits
  7. 26 May, 2016 1 commit
  8. 24 May, 2016 1 commit
  9. 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.
      d9fd2f54
  10. 09 May, 2016 1 commit
    • 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
  11. 29 Apr, 2016 1 commit
    • 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
  12. 13 Oct, 2015 1 commit
  13. 07 Oct, 2015 1 commit
  14. 05 Oct, 2015 1 commit
  15. 28 Aug, 2015 4 commits
  16. 08 Jun, 2015 1 commit
  17. 27 May, 2015 1 commit
  18. 16 May, 2015 1 commit
    • Stephen Kelly's avatar
      cmState: Compute and store directory components. · 57bdc1a2
      Stephen Kelly authored
      There is no need to duplicate these in all cmLocalGenerators.
      
      Rename the symbols according to current conventions.
      
      Add explicit calls to Set{Source,Binary}Directory with empty strings
      in order to trigger the population of the components containers with
      the current working directory in cmLocalGenerator.  Having
      directories set to empty is a special case in CMake, which is relied
      on for the `if(CMAKE_BINARY_DIR)` condition at the end of
      CMakeDetermineSystem.cmake.
      57bdc1a2
  19. 15 May, 2015 1 commit
  20. 20 Apr, 2015 3 commits
  21. 18 Apr, 2015 1 commit
  22. 15 Apr, 2015 1 commit
  23. 27 Feb, 2015 1 commit
  24. 18 Jan, 2015 1 commit
  25. 11 Jan, 2015 1 commit
  26. 10 Dec, 2014 1 commit
    • Ben Boeckel's avatar
      ctest: count errors from scripts properly · d8589e64
      Ben Boeckel authored
      In the unlikely event that someone has a billion+ scripts (or some
      codepath returns negative numbers), we could overflow and make a pile of
      errors a non-error. This change also allows us to use flags for the
      error in the future rather than just "something went wrong".
      d8589e64
  27. 15 Oct, 2014 1 commit
  28. 02 Jul, 2014 1 commit
  29. 11 Mar, 2014 2 commits
  30. 08 Mar, 2014 1 commit
    • Ben Boeckel's avatar
      strings: Remove cmStdString references · 270eb96d
      Ben Boeckel authored
      Casts from std::string -> cmStdString were high on the list of things
      taking up time. Avoid such implicit casts across function calls by just
      using std::string everywhere.
      
      The comment that the symbol name is too long is no longer relevant since
      modern debuggers alias the templates anyways and the size is a
      non-issue since the underlying methods are generated since it's
      inherited.
      270eb96d
  31. 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.
      d1526f82
  32. 02 Nov, 2013 1 commit