CMake/Source/CursesDialog
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
..
form Fix spelling typos in comments and documentation (#16037) 2016-03-29 14:31:02 -04:00
.NoDartCoverage ENH: Until there is some test for curses dialog, no need to do coverage 2005-06-20 17:37:40 -04:00
CMakeLists.txt CMake: New option CMake_INSTALL_COMPONENTS 2015-07-07 09:16:40 -04:00
ccmake.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmCursesBoolWidget.cxx Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesBoolWidget.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesCacheEntryComposite.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmCursesCacheEntryComposite.h cmState: Move CacheEntryType enum from cmCacheManager. 2015-04-13 11:44:16 -04:00
cmCursesDummyWidget.cxx cmState: Move CacheEntryType enum from cmCacheManager. 2015-04-13 11:44:16 -04:00
cmCursesDummyWidget.h Rename header guards to not start with double underscore 2014-12-11 13:53:06 -05:00
cmCursesFilePathWidget.cxx cmState: Move CacheEntryType enum from cmCacheManager. 2015-04-13 11:44:16 -04:00
cmCursesFilePathWidget.h Rename header guards to not start with double underscore 2014-12-11 13:53:06 -05:00
cmCursesForm.cxx Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream. 2014-01-07 09:27:44 -05:00
cmCursesForm.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesLabelWidget.cxx Remove some c_str() calls. 2014-03-11 15:03:50 +01:00
cmCursesLabelWidget.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesLongMessageForm.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmCursesLongMessageForm.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesMainForm.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
cmCursesMainForm.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesOptionsWidget.cxx Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesOptionsWidget.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesPathWidget.cxx cmState: Move CacheEntryType enum from cmCacheManager. 2015-04-13 11:44:16 -04:00
cmCursesPathWidget.h Rename header guards to not start with double underscore 2014-12-11 13:53:06 -05:00
cmCursesStandardIncludes.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesStringWidget.cxx Source: Stabilize include order 2016-04-29 13:58:31 -04:00
cmCursesStringWidget.h Rename header guards to not start with double underscore 2014-12-11 13:53:06 -05:00
cmCursesWidget.cxx ccmake: Use more-portable call to set_field_buffer (#15740) 2015-09-16 08:42:20 -04:00
cmCursesWidget.h Source: Stabilize include order 2016-04-29 13:58:31 -04:00