1. 10 Jul, 2019 1 commit
    • Brad King's avatar
      IWYU: Fix handling of <memory> standard header · 71fbebd1
      Brad King authored
      An old workaround for `std::allocator_traits<>::value_type` lints from
      IWYU on `std::vector<>` usage breaks IWYU's handling of `<memory>`.
      Convert the workaround to use the same approach we already use for a
      workaround of `std::__decay_and_strip<>::::__type` lints.  Then update
      the `<memory>` inclusions to follow the now-correct IWYU lints.
      71fbebd1
  2. 29 Jan, 2019 1 commit
  3. 22 Jan, 2019 1 commit
  4. 25 Sep, 2018 1 commit
  5. 07 Sep, 2018 1 commit
    • Brad King's avatar
      genex: Simplify cmGeneratorExpressionInterpreter · 1b57f495
      Brad King authored
      All callers were constructing with a non-empty target name using the
      target whose pointer was passed anyway.  Drop this argument.  Simplify
      logic accordingly.  Re-order constructor arguments to match the
      cmCompiledGeneratorExpression::Evaluate arguments.
      
      Also remove unnecessary getters.
      1b57f495
  6. 28 Aug, 2018 1 commit
  7. 16 Aug, 2018 1 commit
  8. 09 Aug, 2018 1 commit
  9. 13 Dec, 2017 1 commit
  10. 04 Dec, 2017 1 commit
  11. 25 Sep, 2017 1 commit
  12. 30 Aug, 2017 1 commit
  13. 26 Aug, 2017 1 commit
  14. 24 Aug, 2017 1 commit
  15. 24 Apr, 2017 1 commit
  16. 11 Apr, 2017 1 commit
    • Daniel Pfeifer's avatar
      Use quotes for non-system includes · 1d829c86
      Daniel Pfeifer authored
      Automate with:
      
      git grep -l '#include <cm_' -- Source \
        | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g'
      
      git grep -l '#include <cmsys/' -- Source \
        | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g'
      
      git grep -l '#include <cm[A-Z]' -- Source \
        | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
      1d829c86
  17. 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.
      86578ecc
  18. 03 Sep, 2016 2 commits
  19. 29 Jun, 2016 1 commit
    • Brad King's avatar
      Avoid using KWSys auto_ptr by adopting it ourselves · b5ec5b09
      Brad King authored
      Replace use of cmsys::auto_ptr with a CM_AUTO_PTR macro that maps to
      our own implementation adopted from the KWSys auto_ptr implementation.
      Later we may be able to map CM_AUTO_PTR to std::auto_ptr on compilers
      that do not warn about it.
      
      Automate the client site conversions:
      
          git grep -l auto_ptr -- Source/ | grep -v Source/kwsys/ | xargs sed -i \
            's|cmsys::auto_ptr|CM_AUTO_PTR|;s|cmsys/auto_ptr.hxx|cm_auto_ptr.hxx|'
      b5ec5b09
  20. 28 Jun, 2016 1 commit
  21. 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.
      d9fd2f54
  22. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
      180538c7
  23. 15 Oct, 2015 1 commit
  24. 12 Oct, 2015 2 commits
  25. 17 Jul, 2015 1 commit
    • Stephen Kelly's avatar
      Genex: Store a backtrace, not a pointer to one. · fc1c7cf8
      Stephen Kelly authored
      The storage of a pointer means that the ownership and lifetime are
      externally determined, which is harder to reason about. It also imposes
      API constraints, requiring APIs to return references to backtraces.
      
      This pointer storage was introduced in commit v3.1.0-rc1~425^2~3 (genex:
      remove the need for backtraces, 2014-05-23).  As backtraces are now cheap
      to copy around, just do that instead.
      fc1c7cf8
  26. 10 Mar, 2015 1 commit
  27. 07 Mar, 2015 1 commit
  28. 12 Nov, 2014 1 commit
    • Stephen Kelly's avatar
      file(GENERATE): Evaluate early to allow generating source files · b80557c7
      Stephen Kelly authored
      The evaluation files must be known before cmTargetTraceDependencies
      attempts to find them, but we must actually generate the files after
      cmTargetTraceDependencies, as that can add to target SOURCES.  The
      limitation is that the generated output name must not depend on the
      SOURCES of a target if the generated file is used by that target.
      
      Mark the output files as GENERATED so that trace dependencies does
      not expect them to already exist in the filesystem.
      
      Move the invokation of ForceLinkerLanguage in the Generate logic
      to after the generated file names are known.  ForceLinkerLanguage
      tries to determine the sources of a target (in order to determine
      an already-known language) and otherwise fails to get information
      about the generated file.
      
      Test that the output of file(GENERATE) can be used as a target source
      file and that accessing the target SOURCES in the name of the output
      file is an error.  Accessing the TARGET_OBJECTS would be a similar
      error if it was legal to use that generator expression in this
      context.  That is not currently possible and is a different error
      condition, so test the current error output as a reminder to change
      the expected output if that becomes possible in the future.  Test
      that generated rule files resulting from cmTargetTraceDependencies
      appear in the SOURCES generated in the output file.
      b80557c7
  29. 21 Jul, 2014 1 commit
  30. 05 Jun, 2014 1 commit
  31. 21 May, 2014 1 commit
    • Stephen Kelly's avatar
      Features: Add COMPILE_FEATURES generator expression. · 0dfe395e
      Stephen Kelly authored
      Allow setting build properties based on the features available
      for a target.  The availability of features is determined at
      generate-time by evaluating the link implementation.
      
      Ensure that the <LANG>_STANDARD determined while evaluating
      COMPILE_FEATURES in the link implementation is not lower than that
      provided by the INTERFACE of the link implementation.  This is
      similar to handling of transitive properties such as
      POSITION_INDEPENDENT_CODE.
      0dfe395e
  32. 02 Apr, 2014 1 commit
    • Stephen Kelly's avatar
      Genex: Only evaluate TARGET_OBJECTS to determine target sources. · 5de63265
      Stephen Kelly authored
      The output of this expression may contain macros for IDEs to replace
      such as $(Configuration), $(CURRENT_ARCH) etc.  To avoid generating
      content which is not usable in other contexts, report an error if
      there is an attempt to use it in other contexts.
      
      This commit may be reverted in the future if a solution to the
      above difference is implemented.
      5de63265
  33. 17 Mar, 2014 1 commit
  34. 08 Mar, 2014 3 commits
  35. 31 Oct, 2013 1 commit
    • Stephen Kelly's avatar
      cmTarget: Make GetProperty() const. · c4373b33
      Stephen Kelly authored
      This has follow-on effects for other methods and classes. Further
      work on making the use of const cmTarget pointers common can be
      done, particularly with a view to generate-time methods.
      c4373b33
  36. 29 Aug, 2013 1 commit