mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add IWYU pragmas to let code-completers use vulkan.hpp. (#1939)
This commit is contained in:
parent
fde7e0fc84
commit
b2c409dd31
@ -99,6 +99,9 @@ void VulkanHppGenerator::generateEnumsHppFile() const
|
|||||||
#ifndef VULKAN_ENUMS_HPP
|
#ifndef VULKAN_ENUMS_HPP
|
||||||
# define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
${Flags}
|
${Flags}
|
||||||
@ -317,6 +320,9 @@ void VulkanHppGenerator::generateFuncsHppFile() const
|
|||||||
#ifndef VULKAN_FUNCS_HPP
|
#ifndef VULKAN_FUNCS_HPP
|
||||||
# define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
${commandDefinitions}
|
${commandDefinitions}
|
||||||
@ -339,6 +345,9 @@ void VulkanHppGenerator::generateHandlesHppFile() const
|
|||||||
#ifndef VULKAN_HANDLES_HPP
|
#ifndef VULKAN_HANDLES_HPP
|
||||||
# define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
${structForwardDeclarations}
|
${structForwardDeclarations}
|
||||||
@ -723,6 +732,9 @@ void VulkanHppGenerator::generateStructsHppFile() const
|
|||||||
#ifndef VULKAN_STRUCTS_HPP
|
#ifndef VULKAN_STRUCTS_HPP
|
||||||
# define 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
|
#include <cstring> // strcmp
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_ENUMS_HPP
|
#ifndef VULKAN_ENUMS_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
template <typename FlagBitsType>
|
template <typename FlagBitsType>
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_FUNCS_HPP
|
#ifndef VULKAN_FUNCS_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_HANDLES_HPP
|
#ifndef VULKAN_HANDLES_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_STRUCTS_HPP
|
#ifndef VULKAN_STRUCTS_HPP
|
||||||
#define 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
|
#include <cstring> // strcmp
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_ENUMS_HPP
|
#ifndef VULKAN_ENUMS_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
template <typename FlagBitsType>
|
template <typename FlagBitsType>
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_FUNCS_HPP
|
#ifndef VULKAN_FUNCS_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_HANDLES_HPP
|
#ifndef VULKAN_HANDLES_HPP
|
||||||
#define 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
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#ifndef VULKAN_STRUCTS_HPP
|
#ifndef VULKAN_STRUCTS_HPP
|
||||||
#define 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
|
#include <cstring> // strcmp
|
||||||
|
|
||||||
namespace VULKAN_HPP_NAMESPACE
|
namespace VULKAN_HPP_NAMESPACE
|
||||||
|
Loading…
Reference in New Issue
Block a user