Commit e739ae74 authored by Ryan Pavlik's avatar Ryan Pavlik
Browse files

monado: Adding IWYU pragmas

parent 402a8f1c
Pipeline #734096 failed with stage
in 7 minutes and 1 second
......@@ -11,8 +11,8 @@
#include "xrt/xrt_frame.h"
#include <gst/app/gstappsink.h>
#include <gst/app/gstappsrc.h>
#include <gst/app/gstappsink.h> // IWYU pragma: export
#include <gst/app/gstappsrc.h> // IWYU pragma: export
#ifdef __cplusplus
......
......@@ -9,15 +9,24 @@
* @author Nis Madsen <nima_zero_one@protonmail.com>
* @ingroup aux_math
*/
// IWYU pragma: no_include "src/Core/DenseBase.h"
// IWYU pragma: no_include "src/Core/MatrixBase.h"
#include "math/m_api.h" // IWYU pragma: associated
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_defines.h"
#include "math/m_api.h"
#include "math/m_eigen_interop.hpp"
#include "math/m_vec3.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/LU>
#include <assert.h>
#include <string.h>
using namespace xrt::auxiliary::math;
......
......@@ -9,7 +9,8 @@
#pragma once
#include "xrt/xrt_defines.h"
#include "xrt/xrt_defines.h" // IWYU pragma: keep
#ifdef __cplusplus
extern "C" {
......
......@@ -9,6 +9,7 @@
*
* Based in part on inc/osvr/Util/EigenQuatExponentialMap.h in OSVR-Core
*/
// IWYU pragma: no_include "src/Core/MatrixBase.h"
#include "math/m_api.h"
#include "math/m_eigen_interop.hpp"
......@@ -22,6 +23,7 @@
// anonymous namespace for internal types
namespace {
template <typename Scalar> struct FourthRootMachineEps;
template <> struct FourthRootMachineEps<double>
{
/// machine epsilon is 1e-53, so fourth root is roughly 1e-13
......
......@@ -9,4 +9,4 @@
#pragma once
#include "glad/egl.h"
#include "glad/egl.h" // IWYU pragma: export
......@@ -9,4 +9,4 @@
#pragma once
#include "glad/gl.h"
#include "glad/gl.h" // IWYU pragma: export
......@@ -8,7 +8,7 @@
*/
#include "ogl_helpers.h"
#include "ogl_api.h"
#include "ogl_api.h" // IWYU pragma: keep
void
ogl_texture_target_for_swapchain_info(const struct xrt_swapchain_create_info *info,
......
......@@ -7,6 +7,7 @@
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_tracking
*/
// IWYU pragma: no_include "src/Core/MatrixBase.h"
#include "tracking/t_imu.h"
#include "tracking/t_imu_fusion.hpp"
......
// Copyright 2019-2020, Collabora, Ltd.
// Copyright 2019-2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
......@@ -10,10 +10,10 @@
#pragma once
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_defines.h"
#include <cjson/cJSON.h> // IWYU pragma: export
#include <stdbool.h>
#include <stddef.h>
#include "cjson/cJSON.h"
struct xrt_matrix_3x3;
struct xrt_quat;
......
......@@ -10,7 +10,7 @@
#pragma once
#include <stdlib.h> // for calloc
#include <string.h> // for memset
#include <string.h> // for memset // IWYU pragma: keep
#ifdef __cplusplus
extern "C" {
......
......@@ -7,6 +7,9 @@
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_util
*/
#pragma once
// IWYU pragma: private, include "util/u_template_historybuf.hpp"
#include <stddef.h>
#include <type_traits>
......
......@@ -12,6 +12,8 @@
#pragma once
// IWYU pragma: private, include "util/u_template_historybuf.hpp"
#include <algorithm>
#include <assert.h>
#include <stdlib.h>
......
......@@ -7,6 +7,9 @@
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_util
*/
#pragma once
// IWYU pragma: private, include "util/u_template_historybuf.hpp"
#include <stddef.h>
#include <type_traits>
......
......@@ -20,7 +20,7 @@
#include "xrt/xrt_compiler.h"
#include <stdint.h>
#include <time.h>
#include <time.h> // IWYU pragma: keep
#ifdef __cplusplus
......
......@@ -12,9 +12,9 @@
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_config_os.h"
#include "xrt/xrt_config_have.h"
#include "xrt/xrt_config_build.h"
#include <stdio.h>
#include "xrt/xrt_config_build.h" // IWYU pragma: keep
#if defined(__cplusplus) && (defined(__clang__) || defined(__GNUC__))
#pragma GCC diagnostic push
......
......@@ -9,8 +9,8 @@
#pragma once
#include "xrt/xrt_defines.h"
#include "xrt/xrt_defines.h" // IWYU pragma: keep
#include "util/u_logging.h"
......
......@@ -11,6 +11,7 @@
#include "os/os_time.h"
#include "os/os_threading.h"
#include "vf_interface.h" // IWYU pragma: associated
#include "util/u_trace_marker.h"
#include "util/u_var.h"
......@@ -21,7 +22,6 @@
#include "util/u_logging.h"
#include "util/u_trace_marker.h"
#include "vf_interface.h"
#include <stdio.h>
#include <assert.h>
......
......@@ -13,6 +13,8 @@
#include <string.h>
#include <zlib.h>
#include <stdio.h>
// IWYU pragma: no_include <asm/int-ll64.h>
// IWYU pragma: no_include <linux/byteorder/little_endian.h>
#include "math/m_api.h"
#include "util/u_debug.h"
......
......@@ -9,9 +9,15 @@
#pragma once
#include "xrt/xrt_config_have.h"
//! @todo Move these to the build system instead.
#define XR_USE_TIMESPEC 1
#ifdef XRT_HAVE_VULKAN
#include "xrt_vulkan_includes.h"
#endif
#ifdef XR_USE_PLATFORM_ANDROID
#include <jni.h>
#endif
......@@ -45,6 +51,6 @@ typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(con
#include <time.h>
#endif
#include "openxr/openxr.h"
#include "openxr/openxr_platform.h"
#include "openxr/loader_interfaces.h"
#include "openxr/openxr.h" // IWYU pragma: export
#include "openxr/openxr_platform.h" // IWYU pragma: export
#include "openxr/loader_interfaces.h" // IWYU pragma: export
......@@ -18,7 +18,7 @@
#include "xrt/xrt_windows.h"
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
#include <vulkan/vulkan.h> // IWYU pragma: export
// Dealing with underscore compat.
#ifndef VK_KHR_MAINTENANCE_1_EXTENSION_NAME
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment