CMake/Source/CPack/WiX
Brad King e1c7747253 Format include directive blocks and ordering with clang-format
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 <daniel@pfeifer-mail.de>
2016-04-29 13:58:54 -04:00
..
cmCPackWIXGenerator.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmCPackWIXGenerator.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmWIXAccessControlList.cxx Replace foo.size() pattern with !foo.empty(). 2015-08-24 20:47:18 +02:00
cmWIXAccessControlList.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmWIXDirectoriesSourceWriter.cxx CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
cmWIXDirectoriesSourceWriter.h CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
cmWIXFeaturesSourceWriter.cxx CPackWIX: refactor and cleanup 2014-02-26 14:15:13 +01:00
cmWIXFeaturesSourceWriter.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmWIXFilesSourceWriter.cxx Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmWIXFilesSourceWriter.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmWIXPatch.cxx CPackWIX: Allow multiple patch files and diagnose if any are missing 2015-12-14 23:28:42 +01:00
cmWIXPatch.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmWIXPatchParser.cxx CPackWIX: Handle text nodes in XML patch content 2015-10-12 21:53:08 +02:00
cmWIXPatchParser.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmWIXRichTextFormatWriter.cxx CPackWIX: refactor and cleanup 2014-02-26 14:15:13 +01:00
cmWIXRichTextFormatWriter.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmWIXShortcut.cxx CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
cmWIXShortcut.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmWIXSourceWriter.cxx Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmWIXSourceWriter.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00