CI: Attempt to fix build failure on windows (#2084)

* explicit flush before clangd-format execution

* scoped ofs attempt

* retrigger ci
This commit is contained in:
Jan Kuhlmann 2025-02-20 17:15:30 +01:00 committed by GitHub
parent 8ab6cb5d8b
commit 4c8fe92a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -559,10 +559,11 @@ inline std::string trimStars( std::string const & input )
void writeToFile( std::string const & str, std::string const & fileName )
{
std::ofstream ofs( fileName );
assert( !ofs.fail() );
ofs << str;
ofs.close();
{
std::ofstream ofs( fileName );
assert( !ofs.fail() );
ofs << str;
}
#if defined( CLANG_FORMAT_EXECUTABLE )
messager.message( "VulkanHppGenerator: Formatting " + fileName + " ...\n" );