Skip to content
Snippets Groups Projects
  1. Mar 03, 2020
    • Hans Johnson's avatar
      COMP: Prefer const pointer when value does not change · acc916ed
      Hans Johnson authored
      The check finds function parameters of a pointer type that could be changed to
      point to a constant type instead.
      
      When const is used properly, many mistakes can be avoided. Advantages when
      using const properly:
       - prevent unintentional modification of data;
       - get additional warnings such as using uninitialized data;
       - make it easier for developers to see possible side effects.
      
      This check is not strict about constness, it only warns when the constness will
      make the function interface safer.
      acc916ed
  2. May 31, 2018
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · 828b6837
      Kitware Robot authored and Brad King's avatar Brad King committed
      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 6.0.
      
      * 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.
      828b6837
  3. May 06, 2017
  4. Nov 04, 2016
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · 6c973b46
      Kitware Robot authored and Brad King's avatar Brad King committed
      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
      6c973b46
    • 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
      c41c1bc4
    • 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
      15e90a3c
  5. Jul 08, 2015
    • Brad King's avatar
      System: Drop Shell_* APIs · d3ba91e1
      Brad King authored
      The shell escaping APIs are very specific to CMake and are not used by
      other KWSys clients.  They are moving to CMake proper, so drop them from
      KWSys.
      
      Change-Id: I422c76f6515d51a352e112828533d6e3fd1a5440
      d3ba91e1
  6. Apr 01, 2014
  7. Sep 09, 2010
  8. Sep 08, 2010
  9. Sep 28, 2009
    • Brad King's avatar
      Convert KWSys to OSI-approved BSD License · 62db264e
      Brad King authored
      This converts the KWSys license to a pure 3-clause OSI-approved BSD
      License.  We drop the previous license clause requiring modified
      versions to be plainly marked.  We also update the KWSys copyright to
      cover the full development time range.
      62db264e
  10. Jul 13, 2009
  11. Dec 18, 2008
    • Brad King's avatar
      BUG: Fix windows command line escape for empty arg · 7f5573e8
      Brad King authored
      On Windows the KWSys System package generates escapes for command-line
      arguments.  This fix enables quoting of the empty string as an argument.
      This also adds a test to pass an empty argument to a custom command.
      7f5573e8
  12. Apr 30, 2008
  13. Jan 13, 2008
  14. May 18, 2007
  15. May 17, 2007
  16. May 16, 2007
  17. Oct 25, 2006
  18. Oct 23, 2006
  19. Oct 04, 2006
  20. Sep 27, 2006
  21. Sep 21, 2006
Loading