CMake/Tests/CMakeLib
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
..
PseudoMemcheck Merge branch 'backport-no-global-setlocale' into no-global-setlocale 2015-02-06 13:35:21 -05:00
testVisualStudioSlnParser_data VS: Create parser for Visual Studio .sln files 2013-04-12 11:35:35 -04:00
CMakeLists.txt Tests: Move CTestTestMemcheck tools into Tests/CMakeLib 2014-12-18 10:12:16 -05:00
run_compile_commands.cxx cmSystemTools: Teach RunSingleCommand to separate stdout and stderr 2015-04-20 15:47:50 -04:00
testGeneratedFileStream.cxx complex: Move GeneratedFileStream test to CMakeLibTests 2011-12-23 16:16:50 -05:00
testRST.cxx Tests: Fix CMakeLib.testRST for relative __FILE__ 2014-06-06 10:39:45 -04:00
testRST.expect cmRST: Add support for the note and productionlist directives 2013-10-30 10:26:29 -04:00
testRST.rst cmRST: Add support for the note and productionlist directives 2013-10-30 10:26:29 -04:00
testRSTinclude1.rst Add class cmRST to do basic reStructuredText processing 2013-10-16 09:22:35 -04:00
testRSTinclude2.rst Add class cmRST to do basic reStructuredText processing 2013-10-16 09:22:35 -04:00
testRSTmod.cmake cmRST: Teach cmake-module directive to scan bracket comments 2013-10-23 09:36:00 -04:00
testRSTtoc1.rst Add class cmRST to do basic reStructuredText processing 2013-10-16 09:22:35 -04:00
testRSTtoc2.rst Add class cmRST to do basic reStructuredText processing 2013-10-16 09:22:35 -04:00
testSystemTools.cxx complex: Move cmSystemTools::UpperCase test to CMakeLibTests 2011-12-23 16:16:54 -05:00
testUTF8.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
testVisualStudioSlnParser.cxx Remove use of include <cmsys/ios/*> and cmsys_ios::* 2015-08-20 16:19:08 -04:00
testVisualStudioSlnParser.h.in VS: Create parser for Visual Studio .sln files 2013-04-12 11:35:35 -04:00
testXMLParser.cxx Remove use of include <cmsys/ios/*> and cmsys_ios::* 2015-08-20 16:19:08 -04:00
testXMLParser.h.in Create CMakeLib test driver and test cmXMLParser 2009-12-08 11:44:50 -05:00
testXMLParser.xml Create CMakeLib test driver and test cmXMLParser 2009-12-08 11:44:50 -05:00
testXMLSafe.cxx Port all cmOStringStream to std::ostringstream. 2015-01-11 17:06:03 +01:00