Add IWYU pragmas to let code-completers use vulkan.hpp. (#1939)

This commit is contained in:
Andreas Süßenbach 2024-08-07 15:04:06 +02:00 committed by GitHub
parent fde7e0fc84
commit b2c409dd31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 36 additions and 0 deletions

View File

@ -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 <cstring> // strcmp
namespace VULKAN_HPP_NAMESPACE

View File

@ -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 <typename FlagBitsType>

View File

@ -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
{

View File

@ -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
{

View File

@ -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 <cstring> // strcmp
namespace VULKAN_HPP_NAMESPACE

View File

@ -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 <typename FlagBitsType>

View File

@ -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
{

View File

@ -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
{

View File

@ -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 <cstring> // strcmp
namespace VULKAN_HPP_NAMESPACE