1. 07 Feb, 2019 1 commit
  2. 23 Jan, 2019 1 commit
  3. 21 Jan, 2019 1 commit
  4. 17 Jan, 2019 1 commit
  5. 16 Jan, 2019 1 commit
  6. 01 Dec, 2018 1 commit
  7. 31 Jan, 2018 1 commit
    • Pavel Solodovnikov's avatar
      Reduce raw string pointers usage. · 653b8946
      Pavel Solodovnikov authored
      * Change some functions to take `std::string` instead of
        `const char*` in the following classes: `cmMakeFile`, `cmake`,
        `cmCoreTryCompile`, `cmSystemTools`,  `cmState`, `cmLocalGenerator`
        and a few others.
      * Greatly reduce using of `const char*` overloads for
        `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`.
      * Remove many redundant `c_str()` conversions throughout the code.
      653b8946
  8. 23 Jan, 2018 1 commit
  9. 08 Oct, 2017 1 commit
  10. 15 Sep, 2017 1 commit
  11. 24 Aug, 2017 1 commit
  12. 11 Apr, 2017 1 commit
    • Daniel Pfeifer's avatar
      Use quotes for non-system includes · 1d829c86
      Daniel Pfeifer authored
      Automate with:
      
      git grep -l '#include <cm_' -- Source \
        | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g'
      
      git grep -l '#include <cmsys/' -- Source \
        | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g'
      
      git grep -l '#include <cm[A-Z]' -- Source \
        | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
      1d829c86
  13. 30 Oct, 2016 1 commit
  14. 26 Oct, 2016 1 commit
  15. 21 Oct, 2016 1 commit
  16. 19 Oct, 2016 1 commit
  17. 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
  18. 28 Jun, 2016 1 commit
  19. 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
  20. 06 May, 2016 1 commit
    • Brad King's avatar
      Isolate formatted streaming blocks with clang-format off/on · 64b55203
      Brad King authored
      The clang-format tool can do a good job formatting most code, but
      well-organized streaming blocks are best left manually formatted.
      
      Find blocks of the form
      
          os <<
            "...\n"
            "...\n"
            ;
      
      using the command
      
          $ git ls-files -z -- Source |
            egrep -v -z '^Source/kwsys/' |
            xargs -0 pcregrep -M --color=always -B 1 -A 1 -n \
              '<<[^\n]*\n(^ *("[^\n]*("|<<|;)$|;)\n){2,}'
      
      Find blocks of the form
      
          os << "...\n"
             << "...\n"
             << "...\n";
      
      using the command
      
          $ git ls-files -z -- Source |
            egrep -v -z '^Source/kwsys/' |
            xargs -0 pcregrep -M --color=always -B 1 -A 1 -n \
              '<<[^\n]*\n(^ *<<[^\n]*(\\n"|<<|;)$\n){2,}'
      
      Surround such blocks with the pair
      
          /* clang-format off */
          ...
          /* clang-format on */
      
      in order to protect them from update by clang-format.  Use the C-style
      `/*...*/` comments instead of C++-style `//...` comments in order to
      prevent them from ever being swallowed by re-formatting of surrounding
      comments.
      64b55203
  21. 29 Apr, 2016 1 commit
    • 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.
      180538c7
  22. 19 Feb, 2016 1 commit
    • Brad King's avatar
      try_compile: Add option to control type of target · 7f1bd9fe
      Brad King authored
      Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use
      of `add_library(... STATIC ...)` for the generated test project.
      This will be useful for cross-compiling toolchains that cannot
      link a binary without custom flags or scripts.
      7f1bd9fe
  23. 19 May, 2015 1 commit
  24. 20 Apr, 2015 1 commit
  25. 13 Apr, 2015 2 commits
  26. 08 Apr, 2015 2 commits
  27. 07 Apr, 2015 1 commit
    • Brad King's avatar
      Revert topic 'refactor-cache-api' · 3347c5e4
      Brad King authored
      This topic was never tested without some follow-up commits.  The
      GetCacheEntryValue API returns a pointer to memory freed on return.
      It will have to be revised along with the rest of the original topic.
      3347c5e4
  28. 06 Apr, 2015 1 commit
  29. 26 Jan, 2015 1 commit
    • Matt McCormick's avatar
      try_run: Add support for LINK_LIBRARIES option. · e2b1f058
      Matt McCormick authored
      Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}.
      Document and improve argument parsing.
      
      This functionality is already being used by a number of modules, like
      CheckCSourceCompiles.cmake, but it is not documented.
      e2b1f058
  30. 18 Jan, 2015 2 commits
  31. 15 Oct, 2014 1 commit
  32. 11 Mar, 2014 1 commit
    • Stephen Kelly's avatar
      Remove some c_str() calls. · 21c573f6
      Stephen Kelly authored
      Use the clang RemoveCStrCalls tool to automatically migrate the
      code. This was only run on linux, so does not have any positive or
      negative effect on other platforms.
      21c573f6
  33. 07 Jan, 2014 1 commit
  34. 22 Aug, 2013 1 commit
    • Stephen Kelly's avatar
      Generate modern-style cmake code. · 33055c40
      Stephen Kelly authored
      The commits 9db31162 (Remove CMake-language block-end command
      arguments, 2012-08-13) and 77543bde (Convert CMake-language
      commands to lower case, 2012-08-13) changed most cmake code
      to use lowercase commands and no parameters in termination
      commands. However, those changes excluded cmake code generated
      in c++ by cmake.
      
      Make a similar style change to code generated by cmake.
      33055c40
  35. 27 Sep, 2011 1 commit
  36. 15 Sep, 2011 2 commits