1. 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
  2. 09 May, 2016 1 commit
    • Brad King's avatar
      Remove `//------...` horizontal separator comments · 0ac18d40
      Brad King authored
      Modern editors provide plenty of ways to visually separate functions.
      Drop the explicit comments that previously served this purpose.
      Use the following command to automate the change:
      
          $ git ls-files -z -- \
              "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" |
            egrep -z -v "^Source/cmCommandArgumentLexer\." |
            egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmDependsJavaLexer\." |
            egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmExprLexer\." |
            egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmFortranLexer\." |
            egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmListFileLexer\." |
            egrep -z -v "^Source/cm_sha2" |
            egrep -z -v "^Source/(kwsys|CursesDialog/form)/" |
            egrep -z -v "^Utilities/(KW|cm).*/" |
            xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}'
      
      This avoids modifying third-party sources and generated sources.
      0ac18d40
  3. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Format include directive blocks and ordering with clang-format · e1c77472
      Brad King authored
      Sort include directives within each block (separated by a blank line) in
      lexicographic order (except to prioritize `sys/types.h` first).  First
      run `clang-format` with the config file:
      
          ---
          SortIncludes: false
          ...
      
      Commit the result temporarily.  Then run `clang-format` again with:
      
          ---
          SortIncludes: true
          IncludeCategories:
            - Regex:    'sys/types.h'
              Priority: -1
          ...
      
      Commit the result temporarily.  Start a new branch and cherry-pick the
      second commit.  Manually resolve conflicts to preserve indentation of
      re-ordered includes.  This cleans up the include ordering without
      changing any other style.
      
      Use the following command to run `clang-format`:
      
          $ git ls-files -z -- \
              '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
            egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
            egrep -z -v '^Source/cm_sha2' |
            egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
            egrep -z -v '^Utilities/(KW|cm).*/' |
            egrep -z -v '^Tests/Module/GenerateExportHeader' |
            egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
            xargs -0 clang-format -i
      
      This selects source files that do not come from a third-party.
      Inspired-by: Daniel Pfeifer's avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
      e1c77472
  4. 23 Mar, 2016 1 commit
  5. 05 Oct, 2015 1 commit
  6. 24 Aug, 2015 1 commit
  7. 08 Jul, 2015 1 commit
  8. 15 May, 2015 1 commit
    • Konstantin Podsvirov's avatar
      CPackIFW: Add QtIFW 2.0 support · 9a0ba4d2
      Konstantin Podsvirov authored
      Add variables:
      
      - CPACK_IFW_FRAMEWORK_VERSION
      - CPACK_IFW_PACKAGE_ALLOW_NON_ASCII_CHARACTERS
      - CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH
      - CPACK_IFW_PACKAGE_CONTROL_SCRIPT
      - CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_INI_FILE
      - CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_NAME
      - CPACK_IFW_PACKAGE_START_MENU_DIRECTORY
      - CPACK_IFW_VERBOSE
      9a0ba4d2
  9. 20 Apr, 2015 1 commit
  10. 05 Oct, 2014 1 commit
  11. 04 Oct, 2014 1 commit
  12. 12 Aug, 2014 1 commit
    • Konstantin Podsvirov's avatar
      CPackIFW: Revise this generator · e6496b60
      Konstantin Podsvirov authored
      CPack IFW generator updates:
      - Group now can have script;
      - Root package (for monolithic or one package installers) can be
        configured from group.
      
      CMake updates:
      - Native installation (no Unspecified component).
      e6496b60
  13. 11 Aug, 2014 1 commit
    • Konstantin Podsvirov's avatar
      CPackIFW: Refactor and revise this generator · ebe8d51b
      Konstantin Podsvirov authored
      Split the monolithic cmCPackIFWGenerator source into three parts:
      cmCPackIFWGenerator, cmCPackIFWInstaller, and cmCPackIFWPackage
      to isolate the implementations somewhat.
      
      Add a COMMON option to the cpack_ifw_configure_component command to make
      the data component common to its parent group.
      
      Change the default packaging method to ONE_PACKAGE_PER_COMPONENT.
      This is not incompatible because the CPack IFW generator has not
      yet been in a release.
      ebe8d51b