Add "type" as an optional attribute for enums.

This commit is contained in:
asuessenbach 2021-03-29 10:27:09 +02:00
parent 32188df57b
commit 9f930fe2fd

View File

@ -11881,7 +11881,8 @@ void VulkanHppGenerator::readEnumConstant( tinyxml2::XMLElement const * element
{
int line = element->GetLineNum();
std::map<std::string, std::string> 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;