mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-08 13:40:08 +00:00
Mark every non-enhanced function with VULKAN_HPP_NOEXCEPT. (#481)
This commit is contained in:
parent
65450515ee
commit
e49f02013a
@ -1517,9 +1517,9 @@ void VulkanHppGenerator::appendFunction(std::string & str, std::string const& in
|
||||
appendFunctionHeaderArguments(str, commandData, returnParamIndex, templateParamIndex, vectorParamIndices, enhanced, singular, !definition, withAllocator);
|
||||
|
||||
// Any function that originally does not return VkResult can be marked noexcept,
|
||||
// if it is enhanced it musnt't include anything with an Allocator or needs size checks on multiple vectors
|
||||
// if it is enhanced it must not include anything with an Allocator or needs size checks on multiple vectors
|
||||
bool hasAllocator = enhancedReturnType.find("Allocator") != std::string::npos;
|
||||
if (commandData.second.returnType != "VkResult" && !(enhanced && (hasAllocator || needsMultiVectorSizeCheck(returnParamIndex, vectorParamIndices))))
|
||||
if (!enhanced || (commandData.second.returnType != "VkResult" && !(enhanced && (hasAllocator || needsMultiVectorSizeCheck(returnParamIndex, vectorParamIndices)))))
|
||||
{
|
||||
str += " VULKAN_HPP_NOEXCEPT";
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user