1. 03 Mar, 2017 1 commit
  2. 13 Feb, 2017 1 commit
  3. 09 Feb, 2017 1 commit
  4. 09 Nov, 2016 1 commit
  5. 04 Nov, 2016 4 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
      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
      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
  6. 02 Aug, 2016 2 commits
  7. 29 Mar, 2016 1 commit
  8. 22 Mar, 2016 1 commit
  9. 08 Mar, 2016 1 commit
  10. 07 Mar, 2016 2 commits
  11. 10 Feb, 2016 1 commit
  12. 08 Feb, 2016 1 commit
  13. 28 Aug, 2015 2 commits
  14. 03 Jun, 2015 1 commit
  15. 18 Mar, 2015 1 commit
  16. 17 Mar, 2015 1 commit
  17. 20 Jan, 2015 1 commit
  18. 12 Dec, 2014 1 commit
  19. 10 Dec, 2014 1 commit
    • Jean-Christophe Fillion-Robin's avatar
      SystemInformation: Improve Get(Available/Total)VirtualMemory for windows · c38ba638
      Jean-Christophe Fillion-Robin authored
      Currently kwsys can only return ullTotalVirtual, which is not
      a very useful value, as memory allocation will fail if we exhaust
      the ullTotalPageFile limit.
      For example, on a windows workstation, GlobalMemoryStatusEx
      ullTotalVirtual = 128TB
      ullTotalPageFile = 16GB
      This commit updates the function Get(Available/Total)VirtualMemory to
      use page file size.
      Change-Id: I461e5f0a975432c31fc7370efe8467c61fea1bb3
  20. 11 Nov, 2014 1 commit
  21. 16 Oct, 2014 1 commit
  22. 25 Sep, 2014 1 commit
    • Brad King's avatar
      Suppress deprecation warnings for GetVersionEx · 29ffaf43
      Brad King authored
      Visual Studio 12 (2013) deprecated GetVersionEx:
        warning C4996: 'GetVersionExW': was declared deprecated
      in favor of either "versionhelpers.h" or VerifyVersionInfo, neither of
      which exist in some of the older compilers we support.  Rather than
      try to port conditionally to VerifyVersionInfo, simply suppress the
      warning for now.
      Change-Id: I85a6547c7dc25a104d4fe9b4034efdc5cea215ef
  23. 19 Sep, 2014 1 commit
    • Sean McBride's avatar
      SystemInformation: Fix clang -Wtautological-pointer-compare warning · 6aa1f800
      Sean McBride authored
      warning: comparison of array 'unameInfo.release' not equal to a null
               pointer is always true [-Wtautological-pointer-compare]
        if( unameInfo.release!=0 && strlen(unameInfo.release)>=3 )
            ~~~~~~~~~~^~~~~~~  ~
      Indeed an array declared as 'char foo[x]' can never be NULL.
      Removed check against null.
      Change-Id: I0352ad50049d926e78b9ecc796493e898b1bfdb7
  24. 17 Jul, 2014 1 commit
    • Bob E's avatar
      SystemInformation: No SA_RESTART on QNX · 697b1401
      Bob E authored
      QNX not support SA_RESTART signal:
       /* #define SA_RESTART 0x0040 (not supported yet) */
      Use it in SystemInformation only if it is defined.
      Change-Id: I4a00179fe3f288bb524e002ba37094c73a8a8b08
  25. 05 May, 2014 1 commit
  26. 19 Mar, 2014 2 commits
  27. 03 Mar, 2014 1 commit
  28. 18 Dec, 2013 1 commit
  29. 02 Dec, 2013 1 commit
  30. 19 Nov, 2013 1 commit
    • Sean McBride's avatar
      SystemInformation: Work around gcc -Wliteral-suffix warning · a40b9263
      Sean McBride authored
      A single quote in an inline assembly comment is confusing gcc:
       .../SystemInformation.cxx:256:24: warning: invalid suffix on literal;
       C++11 requires a space between literal and identifier [-Wliteral-suffix]
       ; optimiser doesn't know about <<CPUID>>, and so doesn't expect
      Avoid it by changing "doesn't" to "does not".
      Change-Id: Ic4caaeaabfdb99aa486ec09b23d670ec1b125069
  31. 31 Oct, 2013 1 commit
  32. 15 Oct, 2013 1 commit
    • Raphael Kubo da Costa's avatar
      SystemInformation: Include backtrace-related headers on FreeBSD · 6eab64c3
      Raphael Kubo da Costa authored
      This was probably broken for a long while, but the problem was not apparent
      because the check for execinfo.h would fail by default because
      -I/usr/local/include was not being passed to the compiler when making the
      checks for the header's existence.
      Now that very recent FreeBSD versions (ie. 10-CURRENT) have NetBSD's
      libexecinfo in base (and it is thus installed into /usr), the
      backtrace-related checks would pass, but the required headers were not being
      included in SystemInformation.cxx.
      Change-Id: I3b91ed7ac0e6878035aee202b3336c536cc6d2ff
  33. 14 Aug, 2013 1 commit
    • Rolf Eike Beer's avatar
      SystemInformation: fix truncation warnings · dbc8fa1b
      Rolf Eike Beer authored
      Fixes the following truncation warnings from g++ 4.8:
      kwsys/SystemInformation.cxx: In member function 'int cmsys::SystemInformationImplementation::GetFullyQualifiedDomainName(std::string&)':
      kwsys/SystemInformation.cxx:1738:31: warning: conversion to 'socklen_t {aka unsigned int}' from 'long unsigned int' may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
      kwsys/SystemInformation.cxx:1738:58: warning: conversion to 'socklen_t {aka unsigned int}' from 'long unsigned int' may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
      kwsys/SystemInformation.cxx: In member function 'bool cmsys::SystemInformationImplementation::QueryLinuxMemory()':
      kwsys/SystemInformation.cxx:3839:33: warning: conversion to 'int' from 'long unsigned int' may alter its value [-Wconversion]
           char *r=fgets(buffer, sizeof(buffer), fd); // Skip "total: used:..."
      Change-Id: I1016a7e31325ee550322dde7a21ffc92d6ca49dc