From 15ee5141c2734b7799daf544f623dda21d33159a Mon Sep 17 00:00:00 2001 From: hop311 Date: Sat, 10 Aug 2024 23:36:18 +0100 Subject: Fix invalidated file pointer in logger --- src/openvic-dataloader/ParseState.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/openvic-dataloader/ParseState.hpp') diff --git a/src/openvic-dataloader/ParseState.hpp b/src/openvic-dataloader/ParseState.hpp index 259f2a5..221a269 100644 --- a/src/openvic-dataloader/ParseState.hpp +++ b/src/openvic-dataloader/ParseState.hpp @@ -61,6 +61,10 @@ namespace ovdl { return _logger; } + void update_logger_file() { + _logger.set_file(this->ast().file()); + } + private: ast_type _ast; diagnostic_logger_type _logger; @@ -102,6 +106,10 @@ namespace ovdl { return _logger; } + void update_logger_file() { + _logger.set_file(this->file()); + } + private: file_type _file; diagnostic_logger_type _logger; -- cgit v1.2.3-56-ga3b1