1. 04 Nov, 2016 8 commits
    • Brad King's avatar
      Configure clang-format for KWSys source tree · 89b98af5
      Brad King authored
      Use the same format as CMake.  This is the Mozilla style with a few
      * Do not align operator arguments.
      * Do not always break after a function return type.
      * Limit to 79 columns instead of 80 to fit edge cases
        better in 80-column terminals.
      * Format for C++98 instead of C++11 because KWSys is written
        in the former language.
      Change-Id: I755d3ca9cf2d883e85682fa86cab7127156da861
    • Brad King's avatar
      kwsysPrivate: Protect KWSYS_HEADER macro from clang-format · 8649a886
      Brad King authored
      Do not let clang-format add spaces around the "/" in the macro
      Change-Id: I51dd99b304300b4181c6e35628f3a3c324935b7a
    • Brad King's avatar
      SystemInformation: Remove stray comment · a4f5ef79
      Brad King authored
      References to `@KWSYS_NAMESPACE@` have no meaning in non-configured
      Change-Id: I4ffa59918d69aefb4835b2d2e84e4c6bf73dd274
    • Brad King's avatar
      Remove temporary script that filtered license notices · 1d4c0b4a
      Brad King authored
      Change-Id: I35dbe7cb024d2220e2a7137515d03c9b4dc838ba
    • 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
      Add temporary script to filter license notices · fc42d3f2
      Brad King authored
      Add a script to replace our previous per-source license notices with a
      much simpler notice.  This will be used in a following commit and then
      Change-Id: I63911c5b21bab6c198f7f65f7facffd6a1df405c
    • Brad King's avatar
      Copyright.txt: Add notice of copyright by contributors · 26509227
      Brad King authored
      We do not require copyright assignment for contributions to KWSys.
      Update the top-level notice to mention "Contributors" explicitly.
      Change-Id: Id0bd823b8408b8041584a46c81ab46a8cfbe0c0d
    • 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. 03 Nov, 2016 1 commit
    • Brad King's avatar
      FStream: Quiet unused argument warning · 37306a1c
      Brad King authored
      On MSVC we get
          FStream.hxx(149): warning C4100: 'efilebuf' : unreferenced formal parameter
      Quiet the warning by casting the argument to `void`.
      Change-Id: Ife2e2301b95864b0ae4c8bafe21e8c989110d635
  3. 22 Oct, 2016 1 commit
  4. 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
  5. 29 Sep, 2016 1 commit
  6. 23 Sep, 2016 3 commits
  7. 20 Sep, 2016 6 commits
  8. 14 Sep, 2016 3 commits
    • 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
    • Brad King's avatar
      SystemTools: Fix path comparison in test case · 0504dcaf
      Brad King authored
      Use ComparePath to perform case-insensitive comparison when needed.
      Change-Id: I901b1a12ab43655ac44eee2b3e18c3f2630d6c18
    • Brad King's avatar
      ConsoleBuf: Always compile test source for host Windows version · e736efa1
      Brad King authored
      Undefine any `_WIN32_WINNT` value that may be defined on the compiler
      command line by clients that are targeting the build at a different
      version of Windows than the host.  We must build for the host APIs in
      order for the test to be able to configure its console correctly.  Since
      the test binary is not installed it does not matter if it is not built
      for the client's target Windows version.
      Change-Id: Ic3e79550713384c45baf25aa624efbcb5d49d0a4
  9. 09 Sep, 2016 1 commit
    • Dāvis Mosāns's avatar
      ConsoleBuf: Use a custom std::streambuf for console output on Windows · 669e3a06
      Dāvis Mosāns authored
      Currently Microsoft's C++ libraries implementation of std::cout/cerr
      can't output Unicode characters but only ASCII or ANSI if locale is set
      so we implement and use our own ConsoleBuf which can output Unicode
      characters to console and it doesn't matter what locale or console's
      codepage is set.
      Change-Id: I33053aa229796e84088aa3beb0ebe8bdbebaf3d1
  10. 24 Aug, 2016 1 commit
  11. 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
  12. 02 Aug, 2016 3 commits
  13. 01 Aug, 2016 1 commit
  14. 21 Jul, 2016 1 commit
  15. 19 Jul, 2016 2 commits
  16. 18 Jul, 2016 1 commit
  17. 15 Jul, 2016 2 commits
  18. 14 Jul, 2016 3 commits