CMake/Tests/Wrapping
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
..
CMakeLists.txt Tests: Cover fltk_wrap_ui on an executable that links libraries 2016-01-21 13:42:46 -05:00
Wrap.c COMP: More fixes for non-ANSI C compilers. 2006-06-03 09:48:39 -04:00
dummy ENH: Trick VTK_WRAP_JAVA in a better way (avoid CUSTOM_TARGET) 2002-02-12 17:38:41 -05:00
fakefluid.cxx BUG: Fixed fake generation of files to behave more like fluid. 2007-11-10 17:31:50 -05:00
fltk1.fl Add coverage for QT and FLTK wrappers. Also MANGLED_MESA 2002-01-20 01:06:09 -05:00
fltk2.fl Tests: Cover fltk_wrap_ui on an executable that links libraries 2016-01-21 13:42:46 -05:00
foo.ui.in ENH: Really test uic and perform configured uic test 2003-07-30 13:28:32 -04:00
hints Add test for VTK_WRAP_* 2002-01-20 00:11:19 -05:00
itkWrapperConfig.cxx ENH: Added coverage test for ITK_WRAP_TCL. Doesn't actually invoke CABLE. 2002-05-08 17:45:56 -04:00
qtnoqtmain.cxx Remove trailing whitespace from most CMake and C/C++ code 2012-08-13 14:18:39 -04:00
qtwrapping.ui test for QTWarpUI 2002-09-11 16:41:11 -04:00
qtwrappingmain.cxx Format include directive blocks and ordering with clang-format 2016-04-29 13:58:54 -04:00
vtkExcluded.cxx Add test for VTK_WRAP_* 2002-01-20 00:11:19 -05:00
vtkExcluded.h Increase Coverage. 2002-01-20 01:58:57 -05:00
vtkIncluded.cxx Add test for VTK_WRAP_* 2002-01-20 00:11:19 -05:00
vtkIncluded.h Increase Coverage. 2002-01-20 01:58:57 -05:00
vtkTestMoc.h BUG: Fix dependency to input file for QT_WRAP_CPP. Bug #421 - QT_WRAP_CPP 2004-01-05 11:13:50 -05:00
wrapFLTK.c Tests: Cover fltk_wrap_ui on an executable that links libraries 2016-01-21 13:42:46 -05:00
wrapping.cxx Add documentation, comments. Move some 'Complex' sub-tests into 2 new 'Wrapping' and 'Testing' tests. 2002-01-19 21:24:55 -05:00