Skip to content

Commit

Permalink
Add IWYU pragmas to let code-completers use vulkan.hpp. (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach authored Aug 7, 2024
1 parent fde7e0f commit b2c409d
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions VulkanHppGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkan_enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkan_funcs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkan_handles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkan_structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkansc_enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkansc_funcs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkansc_handles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkansc_structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2c409d

Please sign in to comment.