From ae88e94ab4d350f99d644364049d3b386733b483 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Thu, 3 Sep 2020 16:36:39 +0200 Subject: [PATCH] Reintroduce support of separator '::' for len attributes. --- VulkanHppGenerator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 497cd68..1b132e9 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -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, "." ); }