Add some error handling for a std::system call.

This commit is contained in:
asuessenbach 2022-03-16 09:35:26 +01:00
parent c4153f741a
commit aca9dd319e

View File

@ -16476,7 +16476,11 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h
#if defined( CLANG_FORMAT_EXECUTABLE ) #if defined( CLANG_FORMAT_EXECUTABLE )
std::cout << "VulkanHppGenerator: Formatting using "; std::cout << "VulkanHppGenerator: Formatting using ";
std::string commandString = "\"" CLANG_FORMAT_EXECUTABLE "\" --version "; std::string commandString = "\"" CLANG_FORMAT_EXECUTABLE "\" --version ";
(void)std::system( commandString.c_str() ); int ret = std::system( commandString.c_str() );
if ( ret != 0 )
{
std::cout << "VulkanHppGenerator: failed to determine clang_format version with error <" << ret << ">\n";
}
#endif #endif
std::cout << "VulkanHppGenerator: Parsing " << filename << std::endl; std::cout << "VulkanHppGenerator: Parsing " << filename << std::endl;