1. 23 May, 2019 1 commit
  2. 21 Feb, 2019 1 commit
  3. 25 Jan, 2019 2 commits
  4. 22 May, 2018 1 commit
    • florian jacomme's avatar
      Revise implementation of case-insensitive command names · b1a05d6c
      florian jacomme authored
      Store both the as-written and lower-case command names and use
      the latter to avoid case-insensitive string comparisons.
      With this I obtain 2-6% speed increase (on Windows) for the configure
      step with no significant changes in memory usage.  A case-insensitive
      comparison is a lot slower than just calling `==` because the operator
      will use things like memcmp, so prefer the latter.
      The `cmSystemTools::LowerCase` function allocates a new string each time
      it is called, so before this change we were allocating in:
      * cmMakefile::Configure two times for each function
        (to look for `cmake_minimum_required` and `project`)
      * cmMakefile::ExecuteCommand twice by function by calling
        cmState::GetCommand and copying the name
      Now we are only allocating once by function instead of four.
  5. 15 Sep, 2017 1 commit
    • Brad King's avatar
      Use C++11 override instead of CM_OVERRIDE · 0b33aee4
      Brad King authored
      We now require C++11 support including `override`.  Drop use of
      the old compatibility macro.  Convert references as follows:
          git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' |
            xargs sed -i 's/CM_OVERRIDE/override/g'
  6. 12 Sep, 2017 1 commit
  7. 11 May, 2017 2 commits
  8. 09 May, 2017 1 commit
  9. 08 May, 2017 1 commit
  10. 08 Nov, 2016 1 commit
  11. 26 Oct, 2016 1 commit
  12. 22 Oct, 2016 1 commit
  13. 21 Oct, 2016 1 commit
  14. 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.
  15. 16 Sep, 2016 1 commit
  16. 15 Sep, 2016 1 commit
  17. 06 Sep, 2016 1 commit
    • Brad King's avatar
      cmMakefile: Restore nested error logic use of cmExecutionStatus · f1ad71d7
      Brad King authored
      Since commit 14a8d61f (cmMakefile: Port nested error logic away from
      cmExecutionStatus) we fail to continue processing function and macro
      bodies after non-fatal errors.  A non-fatal error should not stop
      foreach loops, macro bodies, nested bodies, or the outer script.
      Add a test covering these cases, and revert the change to fix them.
      Also revert commit 2af853de (cmMakefile: Simplify IssueMessage
      implementation) because the assertion it added (which was removed by the
      above commit and is restored by reverting it) is incorrect.  We do have
      code paths that call cmMakefile::IssueMessage with an empty execution
      stack, such as in CheckForUnusedVariables's LogUnused call.
  18. 25 Aug, 2016 1 commit
  19. 27 Jun, 2016 1 commit
  20. 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.
  21. 22 Jul, 2015 1 commit
  22. 05 Jul, 2015 1 commit
  23. 21 Jun, 2015 3 commits
  24. 04 Jun, 2015 1 commit
  25. 18 May, 2015 1 commit
    • Brad King's avatar
      Fix assertion failure on unmatched foreach in function (#15572) · 3a656065
      Brad King authored
      The lexical scope counting added by commit v3.2.0-rc1~332^2~1 (Track
      nested loop levels in CMake language with a stack of counters,
      2014-11-18) forgot to account for scopes popped by error messages about
      unclosed scopes.  Teach the error handler to pop the lexical scope it
      reports as unclosed.  Re-order the lexical scope RAII object to be
      inside the variable scope RAII object scope so that the lexical scope
      is fully closed before we check assertions about variable scopes.
      Extend the RunCMake.Syntax test with a case covering this.
  26. 15 Apr, 2015 1 commit
  27. 21 Feb, 2015 1 commit
  28. 12 Feb, 2015 3 commits
  29. 11 Feb, 2015 1 commit
  30. 18 Jan, 2015 1 commit
  31. 11 Jan, 2015 2 commits
  32. 03 Apr, 2014 1 commit
  33. 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.