From 9f930fe2fdaeead6e2c2d89131d2dc31a5d97624 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Mon, 29 Mar 2021 10:27:09 +0200 Subject: [PATCH] Add "type" as an optional attribute for enums. --- VulkanHppGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 05602e6..f28b898 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -11881,7 +11881,8 @@ void VulkanHppGenerator::readEnumConstant( tinyxml2::XMLElement const * element { int line = element->GetLineNum(); std::map attributes = getAttributes( element ); - checkAttributes( line, attributes, { { "name", {} } }, { { "alias", {} }, { "comment", {} }, { "value", {} } } ); + checkAttributes( + line, attributes, { { "name", {} } }, { { "alias", {} }, { "comment", {} }, { "type", {} }, { "value", {} } } ); checkElements( line, getChildElements( element ), {} ); std::string alias, name, value;