diff --git a/.clang-format b/.clang-format index c299b46..eee6a76 100644 --- a/.clang-format +++ b/.clang-format @@ -73,15 +73,15 @@ IncludeCategories: - Regex: ' +#include "test.hpp" #include #include #include #include -#include "test.hpp" namespace boost { namespace nowide { diff --git a/test/test_codecvt.cpp b/test/test_codecvt.cpp index 9afb03e..cbbb89e 100644 --- a/test/test_codecvt.cpp +++ b/test/test_codecvt.cpp @@ -9,15 +9,14 @@ #include #include +#include "test.hpp" +#include "test_sets.hpp" #include #include #include #include #include -#include "test.hpp" -#include "test_sets.hpp" - static const char* utf8_name = "\xf0\x9d\x92\x9e-\xD0\xBF\xD1\x80\xD0\xB8\xD0\xB2\xD0\xB5\xD1\x82-\xE3\x82\x84\xE3\x81\x82.txt"; static const std::wstring wide_name_str = boost::nowide::widen(utf8_name); diff --git a/test/test_convert.cpp b/test/test_convert.cpp index 201db77..7522541 100644 --- a/test/test_convert.cpp +++ b/test/test_convert.cpp @@ -7,13 +7,12 @@ // #include +#include "test.hpp" +#include "test_sets.hpp" #include #include #include -#include "test.hpp" -#include "test_sets.hpp" - #ifdef __cpp_lib_string_view #include #define BOOST_NOWIDE_TEST_STD_STRINGVIEW diff --git a/test/test_env.cpp b/test/test_env.cpp index 8b47b1f..d0dcc7a 100644 --- a/test/test_env.cpp +++ b/test/test_env.cpp @@ -7,14 +7,13 @@ // #include +#include "test.hpp" #include #if defined(BOOST_NOWIDE_TEST_INCLUDE_WINDOWS) && defined(BOOST_WINDOWS) #include #endif -#include "test.hpp" - // "Safe" strcpy version with NULL termination to make MSVC runtime happy // which warns when using strncpy template diff --git a/test/test_filebuf.cpp b/test/test_filebuf.cpp index ad35090..d78a894 100644 --- a/test/test_filebuf.cpp +++ b/test/test_filebuf.cpp @@ -7,12 +7,12 @@ #include +#include "file_test_helpers.hpp" +#include "test.hpp" #include #include #include #include -#include "file_test_helpers.hpp" -#include "test.hpp" namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_fs.cpp b/test/test_fs.cpp index f842521..5316b50 100644 --- a/test/test_fs.cpp +++ b/test/test_fs.cpp @@ -11,9 +11,8 @@ #include #include #include -#include - #include "test.hpp" +#include void test_main(int, char** argv, char**) { diff --git a/test/test_fstream.cpp b/test/test_fstream.cpp index 243efa8..924bf55 100644 --- a/test/test_fstream.cpp +++ b/test/test_fstream.cpp @@ -9,13 +9,12 @@ #include #include +#include "file_test_helpers.hpp" +#include "test.hpp" #include #include #include -#include "file_test_helpers.hpp" -#include "test.hpp" - namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_fstream_cxx11.cpp b/test/test_fstream_cxx11.cpp index c5b11c0..cd2ceed 100644 --- a/test/test_fstream_cxx11.cpp +++ b/test/test_fstream_cxx11.cpp @@ -9,11 +9,10 @@ #include #include -#include -#include - #include "file_test_helpers.hpp" #include "test.hpp" +#include +#include namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_fstream_special.cpp b/test/test_fstream_special.cpp index efa6d0f..e57c6d6 100644 --- a/test/test_fstream_special.cpp +++ b/test/test_fstream_special.cpp @@ -9,13 +9,12 @@ #include #include +#include "file_test_helpers.hpp" +#include "test.hpp" #include #include #include -#include "file_test_helpers.hpp" -#include "test.hpp" - namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_ifstream.cpp b/test/test_ifstream.cpp index c2b5b7e..9a55fb6 100644 --- a/test/test_ifstream.cpp +++ b/test/test_ifstream.cpp @@ -7,10 +7,9 @@ #include -#include - #include "file_test_helpers.hpp" #include "test.hpp" +#include namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_iostream.cpp b/test/test_iostream.cpp index 3d2389a..a2822eb 100644 --- a/test/test_iostream.cpp +++ b/test/test_iostream.cpp @@ -9,11 +9,10 @@ #include #include +#include "test.hpp" #include #include -#include "test.hpp" - bool isValidUTF8(const std::string& s) { using namespace boost::nowide::utf; diff --git a/test/test_ofstream.cpp b/test/test_ofstream.cpp index 17b92bb..6755c61 100644 --- a/test/test_ofstream.cpp +++ b/test/test_ofstream.cpp @@ -7,10 +7,9 @@ #include -#include - #include "file_test_helpers.hpp" #include "test.hpp" +#include namespace nw = boost::nowide; using namespace boost::nowide::test; diff --git a/test/test_stackstring.cpp b/test/test_stackstring.cpp index 5bee948..b0e1a63 100644 --- a/test/test_stackstring.cpp +++ b/test/test_stackstring.cpp @@ -8,11 +8,10 @@ // #include -#include -#include - #include "test.hpp" #include "test_sets.hpp" +#include +#include #if defined(BOOST_MSVC) && BOOST_MSVC < 1700 #pragma warning(disable : 4428) // universal-character-name encountered in source diff --git a/test/test_stat.cpp b/test/test_stat.cpp index 63b8128..c8a66f6 100644 --- a/test/test_stat.cpp +++ b/test/test_stat.cpp @@ -8,12 +8,11 @@ #include #include +#include "test.hpp" #ifdef BOOST_WINDOWS #include #endif -#include "test.hpp" - void test_main(int, char** argv, char**) { const std::string prefix = argv[0]; diff --git a/test/test_stdio.cpp b/test/test_stdio.cpp index 914a4fb..e970065 100644 --- a/test/test_stdio.cpp +++ b/test/test_stdio.cpp @@ -10,12 +10,11 @@ #include #include +#include "test.hpp" #include #include #include -#include "test.hpp" - bool file_exists(const std::string& filename) { #ifdef BOOST_WINDOWS diff --git a/test/test_system.cpp b/test/test_system.cpp index adb7855..06edd93 100644 --- a/test/test_system.cpp +++ b/test/test_system.cpp @@ -14,6 +14,7 @@ #include #include #include +#include "test.hpp" #include #include #include @@ -21,8 +22,6 @@ #include #include -#include "test.hpp" - bool is_ascii(const std::string& s) { for(std::string::const_iterator it = s.begin(); it != s.end(); ++it) diff --git a/test/test_traits.cpp b/test/test_traits.cpp index ebb3009..a4341d2 100644 --- a/test/test_traits.cpp +++ b/test/test_traits.cpp @@ -8,10 +8,9 @@ #include #include - +#include "test.hpp" #include #include -#include "test.hpp" #ifdef __has_include #if __has_include()