Merge pull request #1249 from asuessenbach/ignore

Add some error handling for a std::system call.
This commit is contained in:
Andreas Süßenbach 2022-03-16 13:50:31 +01:00 committed by GitHub
commit f58e6ad301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16476,7 +16476,11 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h
#if defined( CLANG_FORMAT_EXECUTABLE )
std::cout << "VulkanHppGenerator: Formatting using ";
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
std::cout << "VulkanHppGenerator: Parsing " << filename << std::endl;