Various import fixes caused by clang-format

Added format protection block to avoid re-ordering of header files
according to formatting rules.
This commit is contained in:
icex2
2019-10-22 21:04:45 +02:00
parent c3bc8782f4
commit b6e588116d
53 changed files with 211 additions and 64 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
#include <hidsdi.h>
#include <setupapi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <setupapi.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stdlib.h>
+4 -1
View File
@@ -1,8 +1,11 @@
#ifndef GENINPUT_DEV_LIST_H
#define GENINPUT_DEV_LIST_H
#include <setupapi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <setupapi.h>
// clang-format on
#include <stdbool.h>
#include <wchar.h>
+4 -1
View File
@@ -1,5 +1,8 @@
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdlib.h>
+4 -1
View File
@@ -6,8 +6,11 @@
#include <string.h>
#include <wchar.h>
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include "geninput/hid-generic-strings.h"
#include "geninput/hid-generic.h"
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "hid-generic"
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stdint.h>
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "hid-generic"
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stddef.h>
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "hid-generic"
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stdint.h>
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "hid-generic"
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stdint.h>
+4 -1
View File
@@ -1,5 +1,8 @@
#include <dbt.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <dbt.h>
// clang-format on
#include <string.h>
+4 -1
View File
@@ -1,8 +1,11 @@
#define LOG_MODULE "kbd"
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
#include <initguid.h>
#include <windows.h>
// clang-format on
#include <stddef.h>
#include <stdint.h>
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "mouse"
#include <initguid.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <initguid.h>
// clang-format on
#include <malloc.h>
#include <stddef.h>
+4 -1
View File
@@ -1,5 +1,8 @@
#include <dbt.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <dbt.h>
// clang-format on
#include <stdint.h>
+4 -1
View File
@@ -1,7 +1,10 @@
#define LOG_MODULE "pacdrive"
#include <hidsdi.h>
// clang-format off
// Don't format because the order is important here
#include <windows.h>
#include <hidsdi.h>
// clang-format on
#include <stdbool.h>
#include <stdint.h>