Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ryan Pavlik
Monado
Commits
e739ae74
Commit
e739ae74
authored
Apr 13, 2022
by
Ryan Pavlik
Browse files
monado: Adding IWYU pragmas
parent
402a8f1c
Pipeline
#734096
failed with stage
in 7 minutes and 1 second
Changes
22
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/auxiliary/gstreamer/gst_internal.h
View file @
e739ae74
...
...
@@ -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
...
...
src/xrt/auxiliary/math/m_base.cpp
View file @
e739ae74
...
...
@@ -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
;
...
...
src/xrt/auxiliary/math/m_filter_fifo.h
View file @
e739ae74
...
...
@@ -9,7 +9,8 @@
#pragma once
#include
"xrt/xrt_defines.h"
#include
"xrt/xrt_defines.h"
// IWYU pragma: keep
#ifdef __cplusplus
extern
"C"
{
...
...
src/xrt/auxiliary/math/m_quatexpmap.cpp
View file @
e739ae74
...
...
@@ -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
...
...
src/xrt/auxiliary/ogl/egl_api.h
View file @
e739ae74
...
...
@@ -9,4 +9,4 @@
#pragma once
#include
"glad/egl.h"
#include
"glad/egl.h"
// IWYU pragma: export
src/xrt/auxiliary/ogl/ogl_api.h
View file @
e739ae74
...
...
@@ -9,4 +9,4 @@
#pragma once
#include
"glad/gl.h"
#include
"glad/gl.h"
// IWYU pragma: export
src/xrt/auxiliary/ogl/ogl_helpers.c
View file @
e739ae74
...
...
@@ -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
,
...
...
src/xrt/auxiliary/tracking/t_imu.cpp
View file @
e739ae74
...
...
@@ -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"
...
...
src/xrt/auxiliary/util/u_json.h
View file @
e739ae74
// Copyright 2019-202
0
, Collabora, Ltd.
// Copyright 2019-202
2
, 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
;
...
...
src/xrt/auxiliary/util/u_misc.h
View file @
e739ae74
...
...
@@ -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"
{
...
...
src/xrt/auxiliary/util/u_template_historybuf_const_iterator.inl
View file @
e739ae74
...
...
@@ -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>
...
...
src/xrt/auxiliary/util/u_template_historybuf_impl_helpers.hpp
View file @
e739ae74
...
...
@@ -12,6 +12,8 @@
#pragma once
// IWYU pragma: private, include "util/u_template_historybuf.hpp"
#include
<algorithm>
#include
<assert.h>
#include
<stdlib.h>
...
...
src/xrt/auxiliary/util/u_template_historybuf_iterator.inl
View file @
e739ae74
...
...
@@ -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>
...
...
src/xrt/auxiliary/util/u_time.h
View file @
e739ae74
...
...
@@ -20,7 +20,7 @@
#include
"xrt/xrt_compiler.h"
#include
<stdint.h>
#include
<time.h>
#include
<time.h>
// IWYU pragma: keep
#ifdef __cplusplus
...
...
src/xrt/auxiliary/util/u_trace_marker.h
View file @
e739ae74
...
...
@@ -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
...
...
src/xrt/auxiliary/util/u_var.h
View file @
e739ae74
...
...
@@ -9,8 +9,8 @@
#pragma once
#include
"xrt/xrt_defines.h"
#include
"xrt/xrt_defines.h"
// IWYU pragma: keep
#include
"util/u_logging.h"
...
...
src/xrt/drivers/vf/vf_driver.c
View file @
e739ae74
...
...
@@ -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>
...
...
src/xrt/drivers/vive/vive_lighthouse.c
View file @
e739ae74
...
...
@@ -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"
...
...
src/xrt/include/xrt/xrt_openxr_includes.h
View file @
e739ae74
...
...
@@ -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
src/xrt/include/xrt/xrt_vulkan_includes.h
View file @
e739ae74
...
...
@@ -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
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment