Downgrade error on multiple identical "depends" attributes for "require" sections for an extension to a warning. (#1765)

This commit is contained in:
Andreas Süßenbach 2024-01-04 11:37:46 +01:00 committed by GitHub
parent d2f13e2f7f
commit db5c141013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12948,11 +12948,11 @@ void VulkanHppGenerator::readExtensionRequire( tinyxml2::XMLElement const * elem
{
assert( requireData.depends.empty() );
requireData.depends = attribute.second;
checkForError( std::none_of( extensionData.requireData.begin(),
extensionData.requireData.end(),
[&requireData]( RequireData const & rd ) { return rd.depends == requireData.depends; } ),
line,
"required extension <" + requireData.depends + "> already listed" );
checkForWarning( std::none_of( extensionData.requireData.begin(),
extensionData.requireData.end(),
[&requireData]( RequireData const & rd ) { return rd.depends == requireData.depends; } ),
line,
"required dependency <" + requireData.depends + "> already listed for extension <" + extensionData.name + ">" );
}
}