From 469fd9d24f00ca179d87005f4e69b2d2558c740e Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Wed, 7 Aug 2024 11:24:48 +0200 Subject: [PATCH] Add IWYU pragmas to let code-completers use vulkan.hpp. --- VulkanHppGenerator.cpp | 12 ++++++++++++ vulkan/vulkan_enums.hpp | 3 +++ vulkan/vulkan_funcs.hpp | 3 +++ vulkan/vulkan_handles.hpp | 3 +++ vulkan/vulkan_structs.hpp | 3 +++ vulkan/vulkansc_enums.hpp | 3 +++ vulkan/vulkansc_funcs.hpp | 3 +++ vulkan/vulkansc_handles.hpp | 3 +++ vulkan/vulkansc_structs.hpp | 3 +++ 9 files changed, 36 insertions(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 4cf014db9..87d04123f 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -99,6 +99,9 @@ void VulkanHppGenerator::generateEnumsHppFile() const #ifndef VULKAN_ENUMS_HPP # define VULKAN_ENUMS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { ${Flags} @@ -317,6 +320,9 @@ void VulkanHppGenerator::generateFuncsHppFile() const #ifndef VULKAN_FUNCS_HPP # define VULKAN_FUNCS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { ${commandDefinitions} @@ -339,6 +345,9 @@ void VulkanHppGenerator::generateHandlesHppFile() const #ifndef VULKAN_HANDLES_HPP # define VULKAN_HANDLES_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { ${structForwardDeclarations} @@ -723,6 +732,9 @@ void VulkanHppGenerator::generateStructsHppFile() const #ifndef VULKAN_STRUCTS_HPP # define VULKAN_STRUCTS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + #include // strcmp namespace VULKAN_HPP_NAMESPACE diff --git a/vulkan/vulkan_enums.hpp b/vulkan/vulkan_enums.hpp index 5632f328e..d22633e9e 100644 --- a/vulkan/vulkan_enums.hpp +++ b/vulkan/vulkan_enums.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_ENUMS_HPP #define VULKAN_ENUMS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { template diff --git a/vulkan/vulkan_funcs.hpp b/vulkan/vulkan_funcs.hpp index 3d539ed81..fc1220fc1 100644 --- a/vulkan/vulkan_funcs.hpp +++ b/vulkan/vulkan_funcs.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_FUNCS_HPP #define VULKAN_FUNCS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { diff --git a/vulkan/vulkan_handles.hpp b/vulkan/vulkan_handles.hpp index eda996882..05bfbe685 100644 --- a/vulkan/vulkan_handles.hpp +++ b/vulkan/vulkan_handles.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_HANDLES_HPP #define VULKAN_HANDLES_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { diff --git a/vulkan/vulkan_structs.hpp b/vulkan/vulkan_structs.hpp index 055621681..3fb6ff653 100644 --- a/vulkan/vulkan_structs.hpp +++ b/vulkan/vulkan_structs.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_STRUCTS_HPP #define VULKAN_STRUCTS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + #include // strcmp namespace VULKAN_HPP_NAMESPACE diff --git a/vulkan/vulkansc_enums.hpp b/vulkan/vulkansc_enums.hpp index 4578bf78b..469e05ec5 100644 --- a/vulkan/vulkansc_enums.hpp +++ b/vulkan/vulkansc_enums.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_ENUMS_HPP #define VULKAN_ENUMS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { template diff --git a/vulkan/vulkansc_funcs.hpp b/vulkan/vulkansc_funcs.hpp index 29c08f79d..8bcd1547f 100644 --- a/vulkan/vulkansc_funcs.hpp +++ b/vulkan/vulkansc_funcs.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_FUNCS_HPP #define VULKAN_FUNCS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { diff --git a/vulkan/vulkansc_handles.hpp b/vulkan/vulkansc_handles.hpp index f9196bf70..d98d8d6d3 100644 --- a/vulkan/vulkansc_handles.hpp +++ b/vulkan/vulkansc_handles.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_HANDLES_HPP #define VULKAN_HANDLES_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + namespace VULKAN_HPP_NAMESPACE { diff --git a/vulkan/vulkansc_structs.hpp b/vulkan/vulkansc_structs.hpp index 49ddd7f14..d52e01c41 100644 --- a/vulkan/vulkansc_structs.hpp +++ b/vulkan/vulkansc_structs.hpp @@ -8,6 +8,9 @@ #ifndef VULKAN_STRUCTS_HPP #define VULKAN_STRUCTS_HPP +// include-what-you-use: make sure, vulkan.hpp is used by code-completers +// IWYU pragma: private; include "vulkan.hpp" + #include // strcmp namespace VULKAN_HPP_NAMESPACE