CMake/Tests/CMakeCommands/target_link_libraries
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
..
cmp0022 Tests: Do not try to use invalid "ld -v" flag on Solaris 2015-03-31 11:21:36 -04:00
subdir Rename variable for including current directory in interfaces 2013-03-19 16:44:17 -04:00
CMakeLists.txt target_link_libraries: Allow repeated use of LINK_{PRIVATE,PUBLIC} keywords. 2013-10-17 17:37:20 +02:00
depA.cpp target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depA.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depB.cpp Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
depB.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depC.cpp GenerateExportHeader test: add newlines before end of file 2012-01-18 00:01:08 +01:00
depC.h target_link_libraries: Add LINK_(PUBLIC|PRIVATE) options 2011-11-22 16:52:35 -05:00
depD.cpp Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
depD.h Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
depG.cpp Add includes and compile definitions with target_link_libraries. 2013-01-31 17:34:20 +01:00
depG.h Add includes and compile definitions with target_link_libraries. 2013-01-31 17:34:20 +01:00
depIfaceOnly.cpp Make targets depend on the link interface of their dependees. 2013-01-03 13:31:50 -05:00
depIfaceOnly.h Make targets depend on the link interface of their dependees. 2013-01-03 13:31:50 -05:00
empty.cpp Restore support for target names with '+' (#13986) 2013-03-12 13:39:11 -04:00
libgenex.cpp Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
libgenex.h Add LINK_LIBRARIES property for direct target link dependencies 2013-01-08 09:02:43 -05:00
newsignature1.cpp target_link_libraries: Add PUBLIC/PRIVATE/INTERFACE keyword signature 2013-07-24 11:52:44 -04:00
targetA.cpp Remove unused parameters from target_link_libraries tests. 2013-03-06 22:54:49 +01:00
targetB.cpp Remove unused parameters from target_link_libraries tests. 2013-03-06 22:54:49 +01:00
targetC.cpp Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00