1. 11 Nov, 2019 1 commit
  2. 01 Oct, 2019 1 commit
  3. 16 Sep, 2019 1 commit
  4. 10 Sep, 2019 1 commit
    • wahikihiki's avatar
      clang-tidy: modernize-use-auto · d25a5a7e
      wahikihiki authored
      Set the MinTypeNameLength option to an impossibly high value in order
      to limit the diagnostics to iterators.  Leave new expressions and cast
      expressions for later.
      d25a5a7e
  5. 29 Aug, 2019 1 commit
  6. 27 Aug, 2019 1 commit
  7. 23 Aug, 2019 1 commit
  8. 22 Aug, 2019 1 commit
    • Sebastian Holtermann's avatar
      Source sweep: Use cmStrCat for string concatenation · 9b334397
      Sebastian Holtermann authored
      This patch is generated by a python script that uses regular expressions to
      search for string concatenation patterns of the kind
      
      ```
      std::string str = <ARG0>;
      str += <ARG1>;
      str += <ARG2>;
      ...
      ```
      
      and replaces them with a single `cmStrCat` call
      
      ```
      std::string str = cmStrCat(<ARG0>, <ARG1>, <ARG2>, ...);
      ```
      
      If any `<ARGX>` is itself a concatenated string of the kind
      
      ```
      a + b + c + ...;
      ```
      
      then `<ARGX>` is split into multiple arguments for the `cmStrCat` call.
      
      If there's a sequence of literals in the `<ARGX>`, then all literals in the
      sequence are concatenated and merged into a single literal argument for
      the `cmStrCat` call.
      
      Single character strings are converted to single char arguments for
      the `cmStrCat` call.
      
      `std::to_string(...)` wrappings are removed from `cmStrCat` arguments,
      because it supports numeric types as well as string types.
      
      `arg.substr(x)` arguments to `cmStrCat` are replaced with
      `cm::string_view(arg).substr(x)`
      9b334397
  9. 17 Aug, 2019 1 commit
  10. 14 Aug, 2019 1 commit
  11. 05 Aug, 2019 1 commit
  12. 02 Apr, 2019 1 commit
  13. 07 Feb, 2019 1 commit
  14. 16 Jan, 2019 1 commit
  15. 15 Dec, 2018 1 commit
  16. 10 Oct, 2018 1 commit
    • Brad King's avatar
      cmLocalGenerator: Remove AddCompileDefinitions method · 8f076acd
      Brad King authored
      This method offers the same definitions as `GetTargetDefines` except
      that it excludes the "export" macro on shared libraries.  Update call
      sites to use `GetTargetDefines` instead.  Some of them were incorrectly
      excluding the export macro.
      8f076acd
  17. 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
  18. 07 Aug, 2018 1 commit
    • Sebastian Holtermann's avatar
      cmGeneratedFileStream: clang-tidy applied to remove redundant ``c_str`` calls · b6802cd5
      Sebastian Holtermann authored
      After changing the ``cmGeneratedFileStream`` methods to accept
      ``std::string const&`` instead of ``const char*`` we don't
      need to call ``std::string::c_str`` anymore when passing
      a ``std::string`` to a ``cmGeneratedFileStream`` method.
      
      This patch removes all redundant ``std::string::c_str``
      calls when passing a string to a ``cmGeneratedFileStream`` method.
      
      It was generated by building CMake with clang-tidy enabled using
      the following options:
      
      -DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy-4.0;-checks=-*,readability-redundant-string-cstr;-fix;-fix-errors
      b6802cd5
  19. 01 Jun, 2018 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · d7204e64
      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 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.
      d7204e64
  20. 31 Jan, 2018 1 commit
    • Pavel Solodovnikov's avatar
      Reduce raw string pointers usage. · 653b8946
      Pavel Solodovnikov authored
      * Change some functions to take `std::string` instead of
        `const char*` in the following classes: `cmMakeFile`, `cmake`,
        `cmCoreTryCompile`, `cmSystemTools`,  `cmState`, `cmLocalGenerator`
        and a few others.
      * Greatly reduce using of `const char*` overloads for
        `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`.
      * Remove many redundant `c_str()` conversions throughout the code.
      653b8946
  21. 24 Jan, 2018 1 commit
  22. 23 Jan, 2018 1 commit
  23. 13 Dec, 2017 1 commit
  24. 05 Dec, 2017 1 commit
  25. 04 Dec, 2017 1 commit
  26. 13 Oct, 2017 1 commit
  27. 15 Sep, 2017 1 commit
  28. 12 Sep, 2017 1 commit
  29. 30 Aug, 2017 1 commit
  30. 24 Aug, 2017 1 commit
  31. 16 Aug, 2017 1 commit
    • Aaron Orenstein's avatar
      Performance: Add an index to Change cmLocalGenerator::GeneratorTargets. · af3fd6f2
      Aaron Orenstein authored
      Add an index to Change cmLocalGenerator::GeneratorTargets for faster lookup by
      name.
      
      Also changed a bunch of uses of cmLocalGenerator::GetGeneratorTargets() to take
      const references instead of copying the vector.
      
      Represent generator targets as a map (name -> target) to make name lookups more
      efficient instead of looping through the entire vector to find the desired one.
      af3fd6f2
  32. 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
  33. 10 Jan, 2017 1 commit
  34. 12 Dec, 2016 1 commit
  35. 08 Nov, 2016 1 commit
  36. 28 Oct, 2016 1 commit
  37. 27 Oct, 2016 1 commit
  38. 24 Oct, 2016 1 commit
    • Bruno Pedrosa's avatar
      Sublime: Update generated diagnostic matching expression for MSVC · 9f1429e2
      Bruno Pedrosa authored
      Update the generated `file_regex` to match MSVC-style messages in
      addition to the GCC-style messages already matched.  Use non-capturing
      sub-patterns to tolerate the differences in message formats while still
      capturing the four pieces of information in proper group numbers (file
      name, line number, column number, message).
      
      Closes: #16375
      9f1429e2
  39. 19 Oct, 2016 2 commits