summaryrefslogtreecommitdiffhomepage
path: root/vendor
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 20:35:28 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 20:35:28 +0100
commit4e6fd1dd8c9762ea6543ec275fe57ca474f23d8f (patch)
tree39ec629f5b80beb10919677fd12d7b258aaa2e14 /vendor
parent26783733863f62c468a4c8cb2853badd54e30a39 (diff)
chore: codebase modernization and hygiene improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'vendor')
-rw-r--r--vendor/.keep0
-rw-r--r--vendor/toml++/impl/array.inl6
-rw-r--r--vendor/toml++/impl/parser.inl14
-rw-r--r--vendor/toml++/impl/table.inl2
4 files changed, 10 insertions, 12 deletions
diff --git a/vendor/.keep b/vendor/.keep
deleted file mode 100644
index e69de29..0000000
--- a/vendor/.keep
+++ /dev/null
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 <typename Char>
- utf8_reader(std::basic_string_view<Char>,
- std::string_view) -> utf8_reader<std::basic_string_view<Char>>;
+ utf8_reader(std::basic_string_view<Char>, std::string_view)
+ -> utf8_reader<std::basic_string_view<Char>>;
template <typename Char>
- utf8_reader(std::basic_string_view<Char>,
- std::string&&) -> utf8_reader<std::basic_string_view<Char>>;
+ utf8_reader(std::basic_string_view<Char>, std::string&&)
+ -> utf8_reader<std::basic_string_view<Char>>;
template <typename Char>
utf8_reader(std::basic_istream<Char>&, std::string_view) -> utf8_reader<std::basic_istream<Char>>;
template <typename Char>
@@ -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<const std::string>(std::move(path)) \
- }
+#define TOML_PARSE_FILE_ERROR(msg, path) \
+ throw parse_error{msg, source_position{}, std::make_shared<const std::string>(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();) {