CMake/Tests/ExportImport/Export
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
..
Interface Export: Escape exported property values when writing CMake language files 2015-06-24 09:19:39 -04:00
include/abs install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
renamed Add EXPORT_NAME property. 2013-05-18 10:00:48 +02:00
sublib Rename variable for including current directory in interfaces 2013-03-19 16:44:17 -04:00
CMakeLists.txt Drop Visual Studio 6 generator 2016-03-09 09:42:18 -05:00
cmp0022.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022.h Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022_vs6_1.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022_vs6_2.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
empty.cpp Fix crash on export of target with empty INTERFACE_INCLUDE_DIRECTORIES. 2013-07-29 15:50:24 +02:00
systemlib.cpp Always consider includes from IMPORTED targets to be SYSTEM. 2013-09-24 20:00:31 +02:00
systemlib.h Always consider includes from IMPORTED targets to be SYSTEM. 2013-09-24 20:00:31 +02:00
testExe1.c COMP: Convert C function prototypes to use (void) instead of (). 2008-02-03 08:57:58 -05:00
testExe1lib.c COMP: Convert C function prototypes to use (void) instead of (). 2008-02-03 08:57:58 -05:00
testExe2.c ENH: Added ExportImport test to test new export/import features. 2008-01-28 08:40:21 -05:00
testExe2lib.c ENH: Updated ExportImport test to try LINK_INTERFACE_LIBRARIES. 2008-01-30 17:26:09 -05:00
testExe2libImp.c ENH: Updated ExportImport test to try LINK_INTERFACE_LIBRARIES. 2008-01-30 17:26:09 -05:00
testExe3.c ENH: Support exporting/importing of AppBundle targets. 2008-01-28 14:46:16 -05:00
testExe4.c Add generator expression support to OUTPUT_DIRECTORY target properties 2015-08-12 13:43:00 -04:00
testLib1.c COMP: Convert C function prototypes to use (void) instead of (). 2008-02-03 08:57:58 -05:00
testLib1file1.txt install: Support generator expressions in FILES and PROGRAMS mode 2014-02-21 17:05:26 -05:00
testLib1file2.txt install: Support generator expressions in FILES and PROGRAMS mode 2014-02-21 17:05:26 -05:00
testLib2.c COMP: Convert C function prototypes to use (void) instead of (). 2008-02-03 08:57:58 -05:00
testLib3.c ENH: Updated ExportImport test to try LINK_INTERFACE_LIBRARIES. 2008-01-30 17:26:09 -05:00
testLib3Imp.c Follow all dependencies of shared library private dependencies 2011-12-14 11:33:01 -05:00
testLib3ImpDep.c Follow all dependencies of shared library private dependencies 2011-12-14 11:33:01 -05:00
testLib4.c ENH: Added framework to ExportImport test. 2008-01-28 13:06:17 -05:00
testLib4.h Use linked frameworks as a source of include directories. 2013-07-24 11:49:06 -04:00
testLib4lib.c ENH: Test target_link_libraries INTERFACE option 2008-08-11 16:23:10 -04:00
testLib4libdbg.c ENH: Test target_link_libraries INTERFACE option 2008-08-11 16:23:10 -04:00
testLib4libopt.c ENH: Test target_link_libraries INTERFACE option 2008-08-11 16:23:10 -04:00
testLib5.c ENH: Allow IMPORTED_IMPLIB w/o IMPORTED_LOCATION 2009-04-08 16:29:04 -04:00
testLib6.cxx ENH: Test export/import of link interface languages 2009-07-11 10:10:51 -04:00
testLib6c.c COMP: Fix ExportImport testLib6 on VS6 2009-07-13 09:20:36 -04:00
testLib7.c Add generator expression support to OUTPUT_NAME target property 2015-07-09 11:48:10 -04:00
testLibAbs1.c install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
testLibCycleA1.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibCycleA2.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibCycleA3.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibCycleB1.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibCycleB2.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibCycleB3.c Test link multiplicity export/import 2009-09-01 10:38:36 -04:00
testLibDepends.c Fix export of STATIC library PRIVATE dependencies with CMP0022 NEW 2016-01-15 10:18:53 -05:00
testLibNoSONAME.c Tests: Cover NO_SONAME property for SHARED libraries 2015-08-20 10:38:34 -04:00
testLibPerConfigDest.c install: Allow generator expressions in TARGETS DESTINATION (#14317) 2015-02-11 15:15:33 -05:00
testLibRequired.c exports: add a test for exporting dependent targets 2012-09-30 10:27:02 -04:00
testSharedLibDepends.cpp Add EXPORT_NAME property. 2013-05-18 10:00:48 +02:00
testSharedLibDepends.h Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
testSharedLibRequired.cpp Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
testSharedLibRequired.h Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
testSharedLibRequiredUser.cpp try_compile: Extract IMPORTED targets from LINK_DEPENDENT_LIBRARIES 2013-08-26 11:36:57 -04:00
testSharedLibRequiredUser.h try_compile: Extract IMPORTED targets from LINK_DEPENDENT_LIBRARIES 2013-08-26 11:36:57 -04:00
testSharedLibRequiredUser2.cpp try_compile: Extract IMPORTED targets from INTERFACE_LINK_LIBRARIES 2013-08-26 11:37:00 -04:00
testSharedLibRequiredUser2.h try_compile: Extract IMPORTED targets from INTERFACE_LINK_LIBRARIES 2013-08-26 11:37:00 -04:00
testStaticLibRequiredPrivate.c Fix export of STATIC library PRIVATE dependencies with CMP0022 NEW 2016-01-15 10:18:53 -05:00