From 4c8fe92a96cd1ee6a9edc2041e9ad5e4b7c2a434 Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:15:30 +0100 Subject: [PATCH] CI: Attempt to fix build failure on windows (#2084) * explicit flush before clangd-format execution * scoped ofs attempt * retrigger ci --- XMLHelper.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/XMLHelper.hpp b/XMLHelper.hpp index 9b61452..5400371 100644 --- a/XMLHelper.hpp +++ b/XMLHelper.hpp @@ -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" );