MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / parseBaseType

Function parseBaseType

generator/VkXMLParser.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138std::pair<std::string, BaseType> parseBaseType( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes )
139{
140 int const line = element->GetLineNum();
141 checkAttributes( "vk.xml", line, attributes, { { "category", { "basetype" } } }, {} );
142
143 // we're ignoring all the text nodes in between, as they are just some C-text with ifdefs and such
144 auto [name, type] = parseNameAndType( element );
145 return { name, { .type = type, .xmlLine = line } };
146}
147
148CategoryAlias parseCategoryAlias( tinyxml2::XMLElement const * element, std::map<std::string, std::string> const & attributes, std::string const & category )
149{

Callers 1

parseTypesTypeFunction · 0.85

Calls 2

checkAttributesFunction · 0.85
parseNameAndTypeFunction · 0.85

Tested by

no test coverage detected