Merge pull request #733 from asuessenbach/len

Reintroduce support of separator '::' for len attributes.
This commit is contained in:
Andreas Süßenbach 2020-09-03 17:31:07 +02:00 committed by GitHub
commit a10771c7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2405,6 +2405,11 @@ void VulkanHppGenerator::appendFunctionBodyEnhancedLocalReturnVariableVectorSize
// -> replace the '->' by '.' and filter out the leading 'p' to access that value
size = startLowerCase( stripPrefix( params[returnParamIndex].len, "p" ) );
size_t pos = size.find( "->" );
if ( pos == std::string::npos )
{
// other notation possibility: ::
pos = size.find( "::" );
}
assert( pos != std::string::npos );
size.replace( pos, 2, "." );
}