diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-09-21 14:38:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-01 16:25:48 (GMT) |
commit | 185fe49f29f6632a3c26c376fcb4934e91092ff7 (patch) | |
tree | a1ced004e5fbad2c766e21fe1fec0a5845538162 /Tests/FindX11 | |
parent | 42ef28b4f3b2f1af5508319b69352647d7e00985 (diff) | |
download | CMake-185fe49f29f6632a3c26c376fcb4934e91092ff7.zip CMake-185fe49f29f6632a3c26c376fcb4934e91092ff7.tar.gz CMake-185fe49f29f6632a3c26c376fcb4934e91092ff7.tar.bz2 |
clang-format: Normalize headers presentation
By using clang-format directives 'IncludeBlocks' and 'IncludeCategories'
headers are regrouped by categories:
1. "cmConfigure.h" which must be first
2. header matching current implementation file
3. standard language headers
4. CMake replacement ones
5. external headers (i.e. #include directive with '<' and '>')
6. Qt headers
7. cmsys/* headers
8. cm_* headers
9. CMake headers (i.e. starting with 'cm[A-Z]')
10. all other headers
Fixes: #19674
Diffstat (limited to 'Tests/FindX11')
-rw-r--r-- | Tests/FindX11/Test/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/FindX11/Test/main.c b/Tests/FindX11/Test/main.c index 044bfa2..c8144e0 100644 --- a/Tests/FindX11/Test/main.c +++ b/Tests/FindX11/Test/main.c @@ -167,12 +167,12 @@ static Bool test_Xkb(void) #endif #ifdef HAVE_X11_xkbfile +// clang-format off # include <stdio.h> - # include <X11/XKBlib.h> # include <X11/extensions/XKBfile.h> - # include <stdlib.h> +// clang-format on static void test_xkbfile(void) { @@ -184,7 +184,6 @@ static void test_xkbfile(void) #ifdef HAVE_X11_Xmu # include <X11/Xmu/Xmu.h> - # include <stdlib.h> static Bool test_Xmu(void) |