From e6dfa2e0ed5b22694b97644add8430bc04af8f1b Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Wed, 17 Sep 2025 06:41:14 +0200 Subject: [PATCH] remove trailing whitespace + fix typos (#2451) --- README.md | 1 - .../simdjson/generic/ondemand/std_deserialize.h | 2 +- singleheader/simdjson.h | 16 ++++++++-------- tests/dom/CMakeLists.txt | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1c35ef2e1..fbd4ff1cd 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,6 @@ Some users may want to browse code along with the compiled assembly. You want to * [C++26 reflection example](https://godbolt.org/z/K3Px64TqK) * [simdjson examples with errors handled through exceptions](https://godbolt.org/z/7G5qE4sr9) * [simdjson examples with errors without exceptions](https://godbolt.org/z/e9dWb9E4v) - Performance results ------------------- diff --git a/include/simdjson/generic/ondemand/std_deserialize.h b/include/simdjson/generic/ondemand/std_deserialize.h index c48f39eb6..07dc59046 100644 --- a/include/simdjson/generic/ondemand/std_deserialize.h +++ b/include/simdjson/generic/ondemand/std_deserialize.h @@ -291,7 +291,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } diff --git a/singleheader/simdjson.h b/singleheader/simdjson.h index 69f6826fb..eddc507c8 100644 --- a/singleheader/simdjson.h +++ b/singleheader/simdjson.h @@ -38971,7 +38971,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -51935,7 +51935,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -65398,7 +65398,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -78861,7 +78861,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -92439,7 +92439,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -106333,7 +106333,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -119704,7 +119704,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } @@ -133088,7 +133088,7 @@ error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept { if constexpr (!std::meta::is_const(mem) && std::meta::is_public(mem)) { constexpr std::string_view key = std::define_static_string(std::meta::identifier_of(mem)); // Note: removed static assert as optional types are now handled generically - // as long we are succesful or the field is not found, we continue + // as long we are successful or the field is not found, we continue if(e == simdjson::SUCCESS || e == simdjson::NO_SUCH_FIELD) { e = obj[key].get(out.[:mem:]); } diff --git a/tests/dom/CMakeLists.txt b/tests/dom/CMakeLists.txt index 05b9e7406..040eef034 100644 --- a/tests/dom/CMakeLists.txt +++ b/tests/dom/CMakeLists.txt @@ -123,7 +123,7 @@ endif() # Add the tests if we're on: # 1. Visual Studio 2022 v17.6 or later -# 2. GCC v14.0.0 or later (GCC v13.0.0 cannot handle pipe oprator of lambda) +# 2. GCC v14.0.0 or later (GCC v13.0.0 cannot handle pipe operator of lambda) # 3. Clang v15.0.0 or later (certain version C++ headers occur error when compiling) if( (MSVC AND MSVC_VERSION LESS 1930) OR