diff options
author | Martin Smith <martin.smith@qt.io> | 2017-03-30 12:54:48 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2017-03-31 11:29:44 +0000 |
commit | 6505062f58f6fe508267cc9fad7d0f87cc01847d (patch) | |
tree | 6a4b7ac376c23d605210115cc43bbc58d340d549 /src/gui/vulkan/qvulkaninstance.h | |
parent | 28d286dc96f4628aa5bba5631ce563cb979b1bfb (diff) |
doc: Fix several qdoc warnings in new software
This change fixes several common qdoc warnings in this new software.
However, because vulkan/vulkan.h is not always available, a few typedefs
were also added to define some standard vulkan types for clang to see
when vulkan.h is not available.
Change-Id: Id3db8c0a59b0c415829c1873a868aba0e84fe21c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/vulkan/qvulkaninstance.h')
-rw-r--r-- | src/gui/vulkan/qvulkaninstance.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h index 5dd00dcfb1..a373ceffde 100644 --- a/src/gui/vulkan/qvulkaninstance.h +++ b/src/gui/vulkan/qvulkaninstance.h @@ -47,7 +47,14 @@ #ifndef VK_NO_PROTOTYPES #define VK_NO_PROTOTYPES #endif +#ifndef Q_CLANG_QDOC #include <vulkan/vulkan.h> +#else +typedef void* PFN_vkVoidFunction; +typedef unsigned long VkSurfaceKHR; +typedef unsigned long VkImage; +typedef unsigned long VkImageView; +#endif #include <QtCore/qscopedpointer.h> #include <QtCore/qvector.h> |