From 03e070604e70bfa910f02f2f3cd5620d22c2bdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sat, 5 Jul 2025 00:58:41 +0200 Subject: [PATCH 1/2] Ignore default clangd cache directory --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9dbd6d8c0b..036ff40bdd 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ build* /CMakeSettings.json .DS_Store *.swp +/.cache From d327c03ff3350de3078abd6f2e176c6418a5fb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sat, 5 Jul 2025 00:59:57 +0200 Subject: [PATCH 2/2] Add IWYU pragmas for provider headers --- glm/ext.hpp | 2 ++ glm/glm.hpp | 3 +++ glm/gtc/vec1.hpp | 2 ++ glm/mat2x2.hpp | 2 ++ glm/mat2x3.hpp | 2 ++ glm/mat2x4.hpp | 2 ++ glm/mat3x2.hpp | 2 ++ glm/mat3x3.hpp | 2 ++ glm/mat3x4.hpp | 2 ++ glm/mat4x2.hpp | 2 ++ glm/mat4x3.hpp | 2 ++ glm/mat4x4.hpp | 2 ++ glm/matrix.hpp | 2 ++ glm/vec2.hpp | 2 ++ glm/vec3.hpp | 2 ++ glm/vec4.hpp | 2 ++ 16 files changed, 33 insertions(+) diff --git a/glm/ext.hpp b/glm/ext.hpp index f9ac3699d8..e360c7e538 100644 --- a/glm/ext.hpp +++ b/glm/ext.hpp @@ -13,6 +13,7 @@ # pragma message("GLM: All extensions included (not recommended)") #endif//GLM_MESSAGES +// IWYU pragma: begin_exports #include "./ext/matrix_clip_space.hpp" #include "./ext/matrix_common.hpp" @@ -265,3 +266,4 @@ # include "./gtx/range.hpp" #endif #endif//GLM_ENABLE_EXPERIMENTAL +// IWYU pragma: end_exports diff --git a/glm/glm.hpp b/glm/glm.hpp index 8b375459a7..0fd0f02be0 100644 --- a/glm/glm.hpp +++ b/glm/glm.hpp @@ -112,6 +112,8 @@ #include #include #include + +// IWYU pragma: begin_exports #include "fwd.hpp" #include "vec2.hpp" @@ -135,3 +137,4 @@ #include "matrix.hpp" #include "vector_relational.hpp" #include "integer.hpp" +// IWYU pragma: end_exports diff --git a/glm/gtc/vec1.hpp b/glm/gtc/vec1.hpp index 63697a2157..e5c199684f 100644 --- a/glm/gtc/vec1.hpp +++ b/glm/gtc/vec1.hpp @@ -13,6 +13,7 @@ #pragma once // Dependency: +// IWYU pragma: begin_exports #include "../ext/vector_bool1.hpp" #include "../ext/vector_bool1_precision.hpp" #include "../ext/vector_float1.hpp" @@ -23,6 +24,7 @@ #include "../ext/vector_int1_sized.hpp" #include "../ext/vector_uint1.hpp" #include "../ext/vector_uint1_sized.hpp" +// IWYU pragma: end_exports #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) # pragma message("GLM: GLM_GTC_vec1 extension included") diff --git a/glm/mat2x2.hpp b/glm/mat2x2.hpp index 96bec96b9a..ccfca00143 100644 --- a/glm/mat2x2.hpp +++ b/glm/mat2x2.hpp @@ -2,8 +2,10 @@ /// @file glm/mat2x2.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double2x2.hpp" #include "./ext/matrix_double2x2_precision.hpp" #include "./ext/matrix_float2x2.hpp" #include "./ext/matrix_float2x2_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat2x3.hpp b/glm/mat2x3.hpp index d68dc25eda..06bb331c57 100644 --- a/glm/mat2x3.hpp +++ b/glm/mat2x3.hpp @@ -2,8 +2,10 @@ /// @file glm/mat2x3.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double2x3.hpp" #include "./ext/matrix_double2x3_precision.hpp" #include "./ext/matrix_float2x3.hpp" #include "./ext/matrix_float2x3_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat2x4.hpp b/glm/mat2x4.hpp index b04b7387b1..05d98220f1 100644 --- a/glm/mat2x4.hpp +++ b/glm/mat2x4.hpp @@ -2,8 +2,10 @@ /// @file glm/mat2x4.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double2x4.hpp" #include "./ext/matrix_double2x4_precision.hpp" #include "./ext/matrix_float2x4.hpp" #include "./ext/matrix_float2x4_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat3x2.hpp b/glm/mat3x2.hpp index c85315372d..c8ab9f719d 100644 --- a/glm/mat3x2.hpp +++ b/glm/mat3x2.hpp @@ -2,8 +2,10 @@ /// @file glm/mat3x2.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double3x2.hpp" #include "./ext/matrix_double3x2_precision.hpp" #include "./ext/matrix_float3x2.hpp" #include "./ext/matrix_float3x2_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat3x3.hpp b/glm/mat3x3.hpp index fd4fa31cde..15ad9f1d87 100644 --- a/glm/mat3x3.hpp +++ b/glm/mat3x3.hpp @@ -2,7 +2,9 @@ /// @file glm/mat3x3.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double3x3.hpp" #include "./ext/matrix_double3x3_precision.hpp" #include "./ext/matrix_float3x3.hpp" #include "./ext/matrix_float3x3_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat3x4.hpp b/glm/mat3x4.hpp index 6342bf5b99..acf7efb9cd 100644 --- a/glm/mat3x4.hpp +++ b/glm/mat3x4.hpp @@ -2,7 +2,9 @@ /// @file glm/mat3x4.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double3x4.hpp" #include "./ext/matrix_double3x4_precision.hpp" #include "./ext/matrix_float3x4.hpp" #include "./ext/matrix_float3x4_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat4x2.hpp b/glm/mat4x2.hpp index e013e46b9c..6de45defa7 100644 --- a/glm/mat4x2.hpp +++ b/glm/mat4x2.hpp @@ -2,8 +2,10 @@ /// @file glm/mat4x2.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double4x2.hpp" #include "./ext/matrix_double4x2_precision.hpp" #include "./ext/matrix_float4x2.hpp" #include "./ext/matrix_float4x2_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat4x3.hpp b/glm/mat4x3.hpp index 205725abd2..9710f3f0e9 100644 --- a/glm/mat4x3.hpp +++ b/glm/mat4x3.hpp @@ -2,7 +2,9 @@ /// @file glm/mat4x3.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double4x3.hpp" #include "./ext/matrix_double4x3_precision.hpp" #include "./ext/matrix_float4x3.hpp" #include "./ext/matrix_float4x3_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/mat4x4.hpp b/glm/mat4x4.hpp index 3515f7f370..ae3b837101 100644 --- a/glm/mat4x4.hpp +++ b/glm/mat4x4.hpp @@ -2,8 +2,10 @@ /// @file glm/mat4x4.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/matrix_double4x4.hpp" #include "./ext/matrix_double4x4_precision.hpp" #include "./ext/matrix_float4x4.hpp" #include "./ext/matrix_float4x4_precision.hpp" +// IWYU pragma: end_exports diff --git a/glm/matrix.hpp b/glm/matrix.hpp index 4584c92c3c..1acf5e1d64 100644 --- a/glm/matrix.hpp +++ b/glm/matrix.hpp @@ -18,6 +18,7 @@ #include "vec2.hpp" #include "vec3.hpp" #include "vec4.hpp" +// IWYU pragma: begin_exports #include "mat2x2.hpp" #include "mat2x3.hpp" #include "mat2x4.hpp" @@ -27,6 +28,7 @@ #include "mat4x2.hpp" #include "mat4x3.hpp" #include "mat4x4.hpp" +// IWYU pragma: end_exports namespace glm { namespace detail diff --git a/glm/vec2.hpp b/glm/vec2.hpp index cd4e0708e1..6c7a4a58b1 100644 --- a/glm/vec2.hpp +++ b/glm/vec2.hpp @@ -2,6 +2,7 @@ /// @file glm/vec2.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/vector_bool2.hpp" #include "./ext/vector_bool2_precision.hpp" #include "./ext/vector_float2.hpp" @@ -12,3 +13,4 @@ #include "./ext/vector_int2_sized.hpp" #include "./ext/vector_uint2.hpp" #include "./ext/vector_uint2_sized.hpp" +// IWYU pragma: end_exports diff --git a/glm/vec3.hpp b/glm/vec3.hpp index f5a927dbe4..8d07d0cbf3 100644 --- a/glm/vec3.hpp +++ b/glm/vec3.hpp @@ -2,6 +2,7 @@ /// @file glm/vec3.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/vector_bool3.hpp" #include "./ext/vector_bool3_precision.hpp" #include "./ext/vector_float3.hpp" @@ -12,3 +13,4 @@ #include "./ext/vector_int3_sized.hpp" #include "./ext/vector_uint3.hpp" #include "./ext/vector_uint3_sized.hpp" +// IWYU pragma: end_exports diff --git a/glm/vec4.hpp b/glm/vec4.hpp index c6ea9f1ff4..4f7627ac98 100644 --- a/glm/vec4.hpp +++ b/glm/vec4.hpp @@ -2,6 +2,7 @@ /// @file glm/vec4.hpp #pragma once +// IWYU pragma: begin_exports #include "./ext/vector_bool4.hpp" #include "./ext/vector_bool4_precision.hpp" #include "./ext/vector_float4.hpp" @@ -12,4 +13,5 @@ #include "./ext/vector_int4_sized.hpp" #include "./ext/vector_uint4.hpp" #include "./ext/vector_uint4_sized.hpp" +// IWYU pragma: end_exports