{
int line = element->GetLineNum();
std::map<std::string, std::string> attributes = getAttributes( element );
- checkAttributes( line, attributes, {}, { { "depends", {} }, { "extension", {} }, { "feature", {} } } );
+ checkAttributes( line, attributes, {}, { { "comment", {}}, { "depends", {} }, { "extension", {} }, { "feature", {} } } );
std::vector<tinyxml2::XMLElement const *> children = getChildElements( element );
checkElements( line, children, {}, { "command", "comment", "enum", "type" } );
"required extension <" + d + "> already listed" );
}
}
- else
+ else if ( attribute.first == "feature" )
{
- assert( attribute.first == "feature" );
if ( m_features.find( attribute.second ) != m_features.end() )
{
assert( depends.empty() );