From 4e6fd1dd8c9762ea6543ec275fe57ca474f23d8f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 9 Dec 2025 20:35:28 +0100 Subject: chore: codebase modernization and hygiene improvements. Signed-off-by: Amlal El Mahrouss --- vendor/.keep | 0 vendor/toml++/impl/array.inl | 6 +++--- vendor/toml++/impl/parser.inl | 14 ++++++-------- vendor/toml++/impl/table.inl | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 vendor/.keep (limited to 'vendor') diff --git a/vendor/.keep b/vendor/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/toml++/impl/array.inl b/vendor/toml++/impl/array.inl index 7ae8ee1..194a21f 100644 --- a/vendor/toml++/impl/array.inl +++ b/vendor/toml++/impl/array.inl @@ -207,7 +207,7 @@ TOML_NAMESPACE_START { } TOML_EXTERNAL_LINKAGE - void array::flatten_child(array && child, size_t & dest_index) noexcept { + void array::flatten_child(array && child, size_t& dest_index) noexcept { for (size_t i = 0, e = child.size(); i < e; i++) { auto type = child.elems_[i]->type(); if (type == node_type::array) { @@ -219,7 +219,7 @@ TOML_NAMESPACE_START { } TOML_EXTERNAL_LINKAGE - array& array::flatten()& { + array& array::flatten() & { if (elems_.empty()) return *this; bool requires_flattening = false; @@ -258,7 +258,7 @@ TOML_NAMESPACE_START { } TOML_EXTERNAL_LINKAGE - array& array::prune(bool recursive)& noexcept { + array& array::prune(bool recursive) & noexcept { if (elems_.empty()) return *this; for (size_t i = elems_.size(); i-- > 0u;) { diff --git a/vendor/toml++/impl/parser.inl b/vendor/toml++/impl/parser.inl index 1530e5a..0ebc31e 100644 --- a/vendor/toml++/impl/parser.inl +++ b/vendor/toml++/impl/parser.inl @@ -391,11 +391,11 @@ TOML_ANON_NAMESPACE_START { }; template - utf8_reader(std::basic_string_view, - std::string_view) -> utf8_reader>; + utf8_reader(std::basic_string_view, std::string_view) + -> utf8_reader>; template - utf8_reader(std::basic_string_view, - std::string&&) -> utf8_reader>; + utf8_reader(std::basic_string_view, std::string&&) + -> utf8_reader>; template utf8_reader(std::basic_istream&, std::string_view) -> utf8_reader>; template @@ -3369,10 +3369,8 @@ TOML_ANON_NAMESPACE_START { TOML_INTERNAL_LINKAGE parse_result do_parse_file(std::string_view file_path) { #if TOML_EXCEPTIONS -#define TOML_PARSE_FILE_ERROR(msg, path) \ - throw parse_error { \ - msg, source_position{}, std::make_shared(std::move(path)) \ - } +#define TOML_PARSE_FILE_ERROR(msg, path) \ + throw parse_error{msg, source_position{}, std::make_shared(std::move(path))} #else #define TOML_PARSE_FILE_ERROR(msg, path) \ return parse_result { \ diff --git a/vendor/toml++/impl/table.inl b/vendor/toml++/impl/table.inl index ca7473e..ba76963 100644 --- a/vendor/toml++/impl/table.inl +++ b/vendor/toml++/impl/table.inl @@ -198,7 +198,7 @@ TOML_NAMESPACE_START { } TOML_EXTERNAL_LINKAGE - table& table::prune(bool recursive)& noexcept { + table& table::prune(bool recursive) & noexcept { if (map_.empty()) return *this; for (auto it = map_.begin(); it != map_.end();) { -- cgit v1.2.3