From 3dc0415374d8f71e92ef92bf5b063c0a54f41aa2 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 2 Feb 2023 20:04:40 +0000 Subject: [PATCH] ipc: Tidy client includes (NFC) Fixes some clang-tidy warnings about duplicated includes. --- src/xrt/ipc/client/ipc_client.h | 5 +++-- src/xrt/ipc/client/ipc_client_compositor.c | 6 ++---- src/xrt/ipc/client/ipc_client_device.c | 12 ++++++------ src/xrt/ipc/client/ipc_client_hmd.c | 11 ++++++----- src/xrt/ipc/client/ipc_client_instance.c | 5 ++--- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/src/xrt/ipc/client/ipc_client.h b/src/xrt/ipc/client/ipc_client.h index 86422637f..708d86a61 100644 --- a/src/xrt/ipc/client/ipc_client.h +++ b/src/xrt/ipc/client/ipc_client.h @@ -12,12 +12,13 @@ #include "xrt/xrt_compiler.h" #include "xrt/xrt_config_os.h" -#include "shared/ipc_protocol.h" -#include "shared/ipc_utils.h" #include "util/u_threading.h" #include "util/u_logging.h" +#include "shared/ipc_protocol.h" +#include "shared/ipc_utils.h" + #include diff --git a/src/xrt/ipc/client/ipc_client_compositor.c b/src/xrt/ipc/client/ipc_client_compositor.c index 01fc8da11..5f5cd8738 100644 --- a/src/xrt/ipc/client/ipc_client_compositor.c +++ b/src/xrt/ipc/client/ipc_client_compositor.c @@ -13,14 +13,12 @@ #include "xrt/xrt_defines.h" #include "xrt/xrt_config_os.h" -#include "util/u_misc.h" -#include "util/u_handles.h" -#include "util/u_trace_marker.h" #include "os/os_time.h" -#include "util/u_wait.h" #include "util/u_misc.h" +#include "util/u_wait.h" +#include "util/u_handles.h" #include "util/u_trace_marker.h" #include "shared/ipc_protocol.h" diff --git a/src/xrt/ipc/client/ipc_client_device.c b/src/xrt/ipc/client/ipc_client_device.c index 0f4a3adf9..b698c5ab3 100644 --- a/src/xrt/ipc/client/ipc_client_device.c +++ b/src/xrt/ipc/client/ipc_client_device.c @@ -7,12 +7,6 @@ * @ingroup ipc_client */ -#include -#include -#include -#include -#include - #include "xrt/xrt_device.h" #include "os/os_time.h" @@ -27,6 +21,12 @@ #include "client/ipc_client.h" #include "ipc_client_generated.h" +#include +#include +#include +#include +#include + /* * diff --git a/src/xrt/ipc/client/ipc_client_hmd.c b/src/xrt/ipc/client/ipc_client_hmd.c index 82b40cf06..07b484eae 100644 --- a/src/xrt/ipc/client/ipc_client_hmd.c +++ b/src/xrt/ipc/client/ipc_client_hmd.c @@ -7,11 +7,6 @@ * @ingroup ipc_client */ -#include -#include -#include -#include -#include #include "xrt/xrt_device.h" @@ -28,6 +23,12 @@ #include "client/ipc_client.h" #include "ipc_client_generated.h" +#include +#include +#include +#include +#include + /* * diff --git a/src/xrt/ipc/client/ipc_client_instance.c b/src/xrt/ipc/client/ipc_client_instance.c index c17493e4a..e5080e206 100644 --- a/src/xrt/ipc/client/ipc_client_instance.c +++ b/src/xrt/ipc/client/ipc_client_instance.c @@ -16,8 +16,9 @@ #include "xrt/xrt_config_os.h" #include "xrt/xrt_config_android.h" -#include "util/u_misc.h" #include "util/u_var.h" +#include "util/u_misc.h" +#include "util/u_file.h" #include "util/u_debug.h" #include "util/u_git_tag.h" #include "util/u_system_helpers.h" @@ -25,7 +26,6 @@ #include "shared/ipc_protocol.h" #include "client/ipc_client.h" #include "ipc_client_generated.h" -#include "util/u_file.h" #include #if !defined(XRT_OS_WINDOWS) @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include