1. 04 Nov, 2016 3 commits
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · 6c973b46
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and 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.
      Change-Id: Ie3aedc03bfe5c3999d4a077fafb8c6f3bbffc5c5
    • Brad King's avatar
      Simplify KWSys per-source license notices · c41c1bc4
      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 KWSys 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#kwsys".
      Run the `filter-notices.bash` script to perform the replacements mechanically.
      Manually fix up the shebang line in one file.
      Change-Id: I8497f7c868664dcf54a8608ab302ad93c860b334
    • Brad King's avatar
      Sort includes to stabilize include order w.r.t. clang-format · 15e90a3c
      Brad King authored
      The clang-format tool sorts `#include` lines within contiguous blocks.
      Separate blocks with blank lines and sort the include lines within them
      so that clang-format does not re-order anything.
      Change-Id: I96d6828f470b9a234464972172d46afab322487c
  2. 07 Oct, 2016 1 commit
    • Brad King's avatar
      SystemTools: Re-implement Strucmp · dfe9b386
      Brad King authored
      The current implementation was added by commit 5c8693bc (remove
      redundant function and eliminate need for strcasecmp, 2003-04-11).  The
      code was taken from Graphviz in 2003 from a source file that at the time
      was distributed under terms of the Common Public License, Version 1.0.
      While the actual content is simple and likely not copyrightable, clarify
      the licensing status by simply re-implementing the function from scratch
      using another approach.
      Change-Id: I44f72b215577af9e3de234b5ef03113c580a3bd6
  3. 29 Sep, 2016 1 commit
  4. 14 Sep, 2016 1 commit
    • Brad King's avatar
      SystemTools: Teach GetActualCaseForPath to convert as much as possible · c4049689
      Brad King authored
      If only some leading components of the input path exist then convert
      those and leave the rest unchanged.  This way if a file path is
      constructed using GetActualCaseForPath and created on disk, then a
      following GetActualCaseForPath on the same now-existing path will return
      the same value.
      Change-Id: I6e09a4d411f8bf107312f39d7409ba2d22bf176b
      CMake-Issue: 16295
  5. 24 Aug, 2016 1 commit
  6. 03 Aug, 2016 1 commit
    • Ben Boeckel's avatar
      SystemTools: add a PathExists method · 6d23dd7e
      Ben Boeckel authored
      This method checks if a path by the given name exists. The problem with
      FileExists is that it returns `false` even for broken (or
      self-referential) symlinks which may not be what the user wants.
      Change-Id: I71b8af6e12a5ae4b1319a3bec83db6c3cef36f90
  7. 02 Aug, 2016 1 commit
  8. 01 Aug, 2016 1 commit
  9. 18 Jul, 2016 1 commit
  10. 15 Jul, 2016 2 commits
  11. 14 Jul, 2016 4 commits
  12. 31 Mar, 2016 2 commits
  13. 07 Mar, 2016 1 commit
  14. 19 Feb, 2016 1 commit
    • Ben Boeckel's avatar
      SystemTools: support deleting junction points · de83c4d4
      Ben Boeckel authored
      Junction points can exist in directories which may be manipulated within
      CMake. The problem is that junction points are currently completely
      unsupported within CMake. Since junctions need special API calls to
      manipulate, DeleteFileW does not work and instead DeviceIoControl must
      be used. Token privilege API calls must also be used to be able to
      actually open the junction points.
      Change-Id: I3e4ff3b7a600146ac3574d2b17890eef07d06496
  15. 08 Feb, 2016 1 commit
  16. 11 Jan, 2016 2 commits
  17. 03 Dec, 2015 4 commits
  18. 01 Dec, 2015 2 commits
  19. 06 Oct, 2015 3 commits
  20. 28 Sep, 2015 1 commit
    • Vitaly Baranov's avatar
      SystemTools: Fix GetPath to not affect existing output vector entries · 2089567a
      Vitaly Baranov authored
      The GetPath method appends paths to an output vector and also converts
      paths to forward slashes.  However, the method should not modify entries
      in the output vector that existed prior to the call.  Fix it to only fix
      slashes in the entries it added to the vector.  Also add a test case
      covering this behavior.
      Change-Id: Ie098c3eddbe63ed59f0d393aa6c43ea6c395011d
  21. 25 Sep, 2015 1 commit
    • Domen Vrankar's avatar
      SystemTools: Handle directories in CopyFile{Always,IfDifferent} · dc4e4a55
      Domen Vrankar authored
      Teach these functions to copy directories as directories instead
      of files.  Create the destination directory and set permissions,
      but do not recurse into the directory structure because these
      functions are meant for individual filesystem entries.
      Change-Id: I20fae2e159f86285c02c3fd894609e2e51cafdac
  22. 11 Sep, 2015 2 commits
  23. 28 Aug, 2015 2 commits
  24. 24 Aug, 2015 1 commit