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

Method generateStructForwardDeclarations

generator/VulkanHppGenerator.cpp:11352–11374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11350}
11351
11352std::string VulkanHppGenerator::generateStructForwardDeclarations() const
11353{
11354 std::string const fowardDeclarationsTemplate = R"(
11355 //===================================
11356 //=== STRUCT forward declarations ===
11357 //===================================
11358
11359${forwardDeclarations}
11360)";
11361
11362 std::string forwardDeclarations;
11363 std::set<std::string> listedStructs;
11364 for ( auto const & feature : m_features )
11365 {
11366 forwardDeclarations += generateStructForwardDeclarations( feature.requireData, feature.name, listedStructs );
11367 }
11368 for ( auto const & extension : m_extensions )
11369 {
11370 forwardDeclarations += generateStructForwardDeclarations( extension.requireData, extension.name, listedStructs );
11371 }
11372
11373 return replaceWithMap( fowardDeclarationsTemplate, { { "forwardDeclarations", forwardDeclarations } } );
11374}
11375
11376std::string VulkanHppGenerator::generateStructForwardDeclarations( std::vector<RequireData> const & requireData,
11377 std::string const & title,

Callers

nothing calls this directly

Calls 2

replaceWithMapFunction · 0.85
stripPrefixFunction · 0.85

Tested by

no test coverage detected