From 979717add1f518de1e094c496932ce415a51747b Mon Sep 17 00:00:00 2001 From: ado Date: Tue, 12 Mar 2024 03:26:10 +0100 Subject: [PATCH] [skip ci] Fix namespace comments --- .gitignore | 1 + include/ss/common.hpp | 2 +- include/ss/converter.hpp | 2 +- include/ss/exception.hpp | 2 +- include/ss/extract.hpp | 4 ++-- include/ss/function_traits.hpp | 2 +- include/ss/parser.hpp | 2 +- include/ss/restrictions.hpp | 2 +- include/ss/setup.hpp | 2 +- include/ss/splitter.hpp | 2 +- include/ss/type_traits.hpp | 2 +- ssp.hpp | 22 +++++++++++----------- test/test_extractions.cpp | 2 +- test/test_helpers.hpp | 4 ++-- test/test_parser1.hpp | 2 +- test/test_parser2.hpp | 2 +- test/test_splitter.cpp | 4 ++-- 17 files changed, 30 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index d562a42..1fadaf3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ compile_commands.json .clang-format +.clang-tidy .ccls-cache/* .cache/ experiment/ diff --git a/include/ss/common.hpp b/include/ss/common.hpp index 3868d06..6a7ee62 100644 --- a/include/ss/common.hpp +++ b/include/ss/common.hpp @@ -141,4 +141,4 @@ inline std::tuple get_line(char*& buffer, size_t& buffer_size, return {ssize, false}; } -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/converter.hpp b/include/ss/converter.hpp index 5058df5..0a1a1f8 100644 --- a/include/ss/converter.hpp +++ b/include/ss/converter.hpp @@ -493,4 +493,4 @@ private: size_t number_of_columns_; }; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/exception.hpp b/include/ss/exception.hpp index 97c714a..3733d19 100644 --- a/include/ss/exception.hpp +++ b/include/ss/exception.hpp @@ -20,4 +20,4 @@ public: } }; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/extract.hpp b/include/ss/extract.hpp index 64b6b1b..99fa2e7 100644 --- a/include/ss/extract.hpp +++ b/include/ss/extract.hpp @@ -142,7 +142,7 @@ template struct unsupported_type { constexpr static bool value = false; }; -} /* namespace */ +} /* namespace errors */ template std::enable_if_t && !std::is_floating_point_v && @@ -247,4 +247,4 @@ inline bool extract(const char* begin, const char* end, return true; } -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/function_traits.hpp b/include/ss/function_traits.hpp index c22a936..945a97e 100644 --- a/include/ss/function_traits.hpp +++ b/include/ss/function_traits.hpp @@ -77,4 +77,4 @@ struct member_wrapper { template \ constexpr bool has_m_##method##_t = has_m_##method::value; -} /* trait */ +} /* namespace ss */ diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index e800593..86b3a7b 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -971,4 +971,4 @@ private: bool eof_{false}; }; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/restrictions.hpp b/include/ss/restrictions.hpp index e72611e..e21a473 100644 --- a/include/ss/restrictions.hpp +++ b/include/ss/restrictions.hpp @@ -124,4 +124,4 @@ struct ne { } }; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/setup.hpp b/include/ss/setup.hpp index 2f298fc..d2a5d2f 100644 --- a/include/ss/setup.hpp +++ b/include/ss/setup.hpp @@ -293,4 +293,4 @@ private: template struct setup> : setup {}; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/splitter.hpp b/include/ss/splitter.hpp index a33cef6..ea00c87 100644 --- a/include/ss/splitter.hpp +++ b/include/ss/splitter.hpp @@ -478,4 +478,4 @@ public: friend class converter; }; -} /* ss */ +} /* namespace ss */ diff --git a/include/ss/type_traits.hpp b/include/ss/type_traits.hpp index 294b8bb..1a1d2ee 100644 --- a/include/ss/type_traits.hpp +++ b/include/ss/type_traits.hpp @@ -378,4 +378,4 @@ T to_object(U&& data) { } } -} /* trait */ +} /* namespace ss */ diff --git a/ssp.hpp b/ssp.hpp index 02466cb..41042aa 100644 --- a/ssp.hpp +++ b/ssp.hpp @@ -393,7 +393,7 @@ T to_object(U&& data) { } } -} /* trait */ +} /* namespace ss */ namespace ss { @@ -413,7 +413,7 @@ public: } }; -} /* ss */ +} /* namespace ss */ namespace ss { @@ -489,7 +489,7 @@ struct member_wrapper { template \ constexpr bool has_m_##method##_t = has_m_##method::value; -} /* trait */ +} /* namespace ss */ namespace ss { @@ -615,7 +615,7 @@ struct ne { } }; -} /* ss */ +} /* namespace ss */ namespace ss { @@ -752,7 +752,7 @@ inline std::tuple get_line(char*& buffer, size_t& buffer_size, return {ssize, false}; } -} /* ss */ +} /* namespace ss */ namespace ss { @@ -1045,7 +1045,7 @@ private: template struct setup> : setup {}; -} /* ss */ +} /* namespace ss */ namespace ss { @@ -1516,7 +1516,7 @@ public: friend class converter; }; -} /* ss */ +} /* namespace ss */ #ifndef SSP_DISABLE_FAST_FLOAT @@ -1649,7 +1649,7 @@ template struct unsupported_type { constexpr static bool value = false; }; -} /* namespace */ +} /* namespace error */ template std::enable_if_t && !std::is_floating_point_v && @@ -1754,7 +1754,7 @@ inline bool extract(const char* begin, const char* end, return true; } -} /* ss */ +} /* namespace ss */ namespace ss { INIT_HAS_METHOD(tied) @@ -2240,7 +2240,7 @@ private: size_t number_of_columns_; }; -} /* ss */ +} /* namespace ss */ namespace ss { @@ -3202,4 +3202,4 @@ private: bool eof_{false}; }; -} /* ss */ +} /* namespace ss */ diff --git a/test/test_extractions.cpp b/test/test_extractions.cpp index 88ec317..6e44196 100644 --- a/test/test_extractions.cpp +++ b/test/test_extractions.cpp @@ -23,7 +23,7 @@ struct is_unsigned : public std::is_unsigned {}; template <> struct is_unsigned : public std::true_type {}; -} /* namespace */ +} /* anonymous namespace */ static_assert(is_signed::value); static_assert(is_unsigned::value); diff --git a/test/test_helpers.hpp b/test/test_helpers.hpp index 188e731..80761c6 100644 --- a/test/test_helpers.hpp +++ b/test/test_helpers.hpp @@ -19,7 +19,7 @@ namespace ss { template class parser; -} /* ss */ +} /* namespace ss */ namespace { @@ -224,4 +224,4 @@ make_parser(const std::string& file_name, return make_parser_impl(file_name, delim); } -} /* namespace */ +} /* anonymous namespace */ diff --git a/test/test_parser1.hpp b/test/test_parser1.hpp index 90267c8..98d69ce 100644 --- a/test/test_parser1.hpp +++ b/test/test_parser1.hpp @@ -109,4 +109,4 @@ static void make_and_write(const std::string& file_name, } } -} /* namespace */ +} /* anonymous namespace */ diff --git a/test/test_parser2.hpp b/test/test_parser2.hpp index 6048a33..7affddf 100644 --- a/test/test_parser2.hpp +++ b/test/test_parser2.hpp @@ -616,7 +616,7 @@ void test_option_combinations3() { test_option_combinations2(); } -} /* namespace */ +} /* anonymous namespace */ // Tests split into multiple compilation units #if 0 diff --git a/test/test_splitter.cpp b/test/test_splitter.cpp index 201de9d..5216688 100644 --- a/test/test_splitter.cpp +++ b/test/test_splitter.cpp @@ -145,7 +145,7 @@ make_combinations(const std::vector& input, return {std::move(lines), std::move(expectations)}; } -} /* namespace */ +} /* anonymous namespace */ /* ********************************** */ /* ********************************** */ @@ -548,7 +548,7 @@ public: return splitter.size_shifted(); } }; -} /* ss */ +} /* namespace ss */ TEST_CASE("splitter test resplit unterminated quote") {