summaryrefslogtreecommitdiffstats
path: root/src/tools/qvkgen
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-03-29 14:22:13 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-03-29 12:23:02 +0000
commite9c06b25af47e869028c7a56a679fda7b4475f38 (patch)
tree42079796b8797179f327ae59d48dedf883893667 /src/tools/qvkgen
parentc72b821b5911842757a3929fb287471ad5d457ea (diff)
Fix clang doc parsing in generation qvulkanfunctions.h
Change-Id: Ic2ac2168af30a3420bdf9181cc4dc5f0a4d8587e Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/tools/qvkgen')
-rw-r--r--src/tools/qvkgen/qvkgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qvkgen/qvkgen.cpp b/src/tools/qvkgen/qvkgen.cpp
index cf97a84062..059f9413cb 100644
--- a/src/tools/qvkgen/qvkgen.cpp
+++ b/src/tools/qvkgen/qvkgen.cpp
@@ -280,7 +280,7 @@ bool genVulkanFunctionsH(const QVector<VkSpecParser::Command> &commands, const Q
"\n"
"#include <QtGui/qtguiglobal.h>\n"
"\n"
-"#if QT_CONFIG(vulkan)\n"
+"#if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)\n"
"\n"
"#ifndef VK_NO_PROTOTYPES\n"
"#define VK_NO_PROTOTYPES\n"
@@ -325,7 +325,7 @@ bool genVulkanFunctionsH(const QVector<VkSpecParser::Command> &commands, const Q
"\n"
"QT_END_NAMESPACE\n"
"\n"
-"#endif // QT_CONFIG(vulkan)\n"
+"#endif // QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)\n"
"\n"
"#endif // QVULKANFUNCTIONS_H\n";