Merge pull request #923 from asuessenbach/type

Add "type" as an optional attribute for enums.
This commit is contained in:
Andreas Süßenbach 2021-03-29 16:52:36 +02:00 committed by GitHub
commit 026e07639f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11878,7 +11878,8 @@ void VulkanHppGenerator::readEnumConstant( tinyxml2::XMLElement const * element
{ {
int line = element->GetLineNum(); int line = element->GetLineNum();
std::map<std::string, std::string> attributes = getAttributes( element ); 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 ), {} ); checkElements( line, getChildElements( element ), {} );
std::string alias, name, value; std::string alias, name, value;