1. 19 Oct, 2016 2 commits
  2. 04 Oct, 2016 1 commit
    • Brad King's avatar
      Do not define cout/cerr preprocessor symbols · 53858177
      Brad King authored
      Apply the change from commit bd3d0eaf (cmCTest: don't redefine cout and
      cerr, 2016-09-01) to the rest of ctest and cpack.  These definitions
      are no longer needed because our conventions are well established.
  3. 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...
  4. 06 Sep, 2016 1 commit
  5. 16 Aug, 2016 1 commit
  6. 29 Jun, 2016 1 commit
    • Brad King's avatar
      Avoid using KWSys auto_ptr by adopting it ourselves · b5ec5b09
      Brad King authored
      Replace use of cmsys::auto_ptr with a CM_AUTO_PTR macro that maps to
      our own implementation adopted from the KWSys auto_ptr implementation.
      Later we may be able to map CM_AUTO_PTR to std::auto_ptr on compilers
      that do not warn about it.
      Automate the client site conversions:
          git grep -l auto_ptr -- Source/ | grep -v Source/kwsys/ | xargs sed -i \
  7. 28 Jun, 2016 1 commit
  8. 02 Jun, 2016 1 commit
    • Daniel Pfeifer's avatar
      Simplify boolean expressions · 7f6b8d33
      Daniel Pfeifer authored
      Use clang-tidy's readability-simplify-boolean-expr checker.
      After applying the fix-its, revise all changes *very* carefully.
      Be aware of false positives and invalid changes.
  9. 26 May, 2016 1 commit
  10. 24 May, 2016 1 commit
  11. 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.
  12. 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.
  13. 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
            - 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>
  14. 13 Oct, 2015 1 commit
  15. 05 Oct, 2015 2 commits
  16. 28 Aug, 2015 3 commits
  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
  19. 15 May, 2015 1 commit
  20. 20 Apr, 2015 1 commit
  21. 18 Apr, 2015 1 commit
  22. 15 Apr, 2015 1 commit
  23. 01 Apr, 2015 1 commit
    • Brad King's avatar
      cpack: Disable CMake Cygwin legacy warning while packaging · aca1d93b
      Brad King authored
      In cpack we load the platform information modules to give the
      configuration scripts access to the host system information.
      CYGWIN.cmake warns unless we explicitly tell it not to warn
      since there is no chance for a cmake_minimum_required(VERSION)
      to be called.
  24. 06 Feb, 2015 1 commit
    • Brad King's avatar
      Do not call setlocale() globally in CMake applications (#15377) · 87be2e14
      Brad King authored
      Revert the changes made by commit v3.1.0-rc1~406^2~1 (Encoding: Add
      setlocale() to applications, 2014-05-30) and commit v3.1.0-rc1~406^2
      (Encoding: Change to only set LC_CTYPE, 2014-06-11), and other setlocale
      calls added later in their spirit.  CMake has not been taught how to
      deal with non-C locales everywhere.  We do not define any functionality
      for character conversions for non-ASCII strings.  Another solution will
      be needed to address the original problem motivating addition of
      setlocale() calls.
  25. 18 Jan, 2015 1 commit
  26. 11 Jan, 2015 1 commit
  27. 15 Oct, 2014 1 commit
  28. 04 Aug, 2014 1 commit
  29. 12 Jun, 2014 1 commit
  30. 03 Jun, 2014 1 commit
  31. 28 May, 2014 1 commit
    • Nils Gladitz's avatar
      Add an "installed file" property scope · 15a8af21
      Nils Gladitz authored
      Teach set_property and get_property an "INSTALL" property type to be
      associated with install-tree file paths.  Make the properties available
      to CPack for use during packaging.  Add a "prop_inst" Sphinx domain
      object type for documentation of such properties.
  32. 12 Mar, 2014 1 commit
  33. 11 Mar, 2014 2 commits
  34. 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
  35. 04 Jan, 2014 1 commit