CMake/Tests/ComplexOneConfig/Executable
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
..
Sub1
Sub2
Temp Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
A.cxx complex: Simplify test for single-character exe name 2011-12-23 16:16:52 -05:00
A.h
A.hh
A.txt BUG: Make sure sources with unknown extensions are not compiled by VS. 2006-08-03 09:26:36 -04:00
CMakeLists.txt Xcode: Disable test for system include dirs 2016-02-08 12:48:35 +01:00
Included.cmake Convert CMake-language commands to lower case 2012-08-13 14:19:16 -04:00
cmVersion.h.in
complex.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
complex.file.cxx
complex_nobuild.c complex: Sync Tests/ComplexOneConfig with Tests/Complex 2011-12-23 16:16:47 -05:00
complex_nobuild.cxx ENH: Adding test for using HEADER_FILE_ONLY to avoid building a .cxx file. 2007-11-19 14:27:43 -05:00
notInAllExe.cxx ENH: Added NOT_IN_ALL option for ADD_LIBRARY and ADD_EXECUTABLE to avoid building the targets by default. 2006-10-02 11:14:00 -04:00
testSystemDir.cxx ENH: Adding SYSTEM option to INCLUDE_DIRECTORIES command. This addresses bug #3462. 2006-10-05 08:55:59 -04:00
testcflags.c Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00