From 26f78f96aa6eed4be97281b5b740ab0cf0466c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 20 Jan 2020 23:24:04 +0100 Subject: [PATCH] Start using piecemeal includes in test files --- src/catch2/catch.hpp | 8 -------- src/catch2/catch_assertionhandler.cpp | 1 + src/catch2/catch_capture_matchers.h | 5 ----- src/catch2/catch_decomposer.h | 13 +++++++++++++ src/catch2/catch_test_macros.hpp | 4 ++++ src/catch2/catch_tostring.h | 2 ++ tests/ExtraTests/X01-PrefixedMacros.cpp | 4 +++- tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp | 7 +++---- tests/SelfTest/IntrospectiveTests/Details.tests.cpp | 3 ++- .../IntrospectiveTests/GeneratorsImpl.tests.cpp | 6 +++++- .../IntrospectiveTests/InternalBenchmark.tests.cpp | 2 +- .../IntrospectiveTests/PartTracker.tests.cpp | 6 ++---- .../RandomNumberGeneration.tests.cpp | 5 +---- tests/SelfTest/IntrospectiveTests/String.tests.cpp | 3 +-- .../IntrospectiveTests/StringManip.tests.cpp | 4 ++-- tests/SelfTest/IntrospectiveTests/Tag.tests.cpp | 8 ++++---- .../SelfTest/IntrospectiveTests/ToString.tests.cpp | 4 ++-- tests/SelfTest/IntrospectiveTests/Xml.tests.cpp | 2 +- tests/SelfTest/UsageTests/Approx.tests.cpp | 5 ++++- tests/SelfTest/UsageTests/BDD.tests.cpp | 5 +---- tests/SelfTest/UsageTests/Class.tests.cpp | 5 +---- tests/SelfTest/UsageTests/Compilation.tests.cpp | 7 +++---- tests/SelfTest/UsageTests/Condition.tests.cpp | 10 +++++----- tests/SelfTest/UsageTests/Decomposition.tests.cpp | 5 +---- tests/SelfTest/UsageTests/EnumToString.tests.cpp | 3 ++- tests/SelfTest/UsageTests/Exception.tests.cpp | 6 ++---- tests/SelfTest/UsageTests/Generators.tests.cpp | 4 +++- tests/SelfTest/UsageTests/Matchers.tests.cpp | 11 +++++++---- tests/SelfTest/UsageTests/Message.tests.cpp | 5 +---- tests/SelfTest/UsageTests/Misc.tests.cpp | 5 +---- tests/SelfTest/UsageTests/ToStringByte.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringChrono.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp | 4 +--- .../SelfTest/UsageTests/ToStringOptional.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringPair.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringTuple.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringVariant.tests.cpp | 2 +- tests/SelfTest/UsageTests/ToStringWhich.tests.cpp | 2 +- tests/SelfTest/UsageTests/Tricky.tests.cpp | 5 +---- tests/SelfTest/UsageTests/VariadicMacros.tests.cpp | 5 +---- 40 files changed, 88 insertions(+), 98 deletions(-) diff --git a/src/catch2/catch.hpp b/src/catch2/catch.hpp index ced54be5..289f526c 100644 --- a/src/catch2/catch.hpp +++ b/src/catch2/catch.hpp @@ -11,14 +11,6 @@ #include -#ifdef __clang__ -# pragma clang system_header -#elif defined __GNUC__ -# pragma GCC system_header -#endif - - - #include #if !defined(CATCH_CONFIG_IMPL_ONLY) diff --git a/src/catch2/catch_assertionhandler.cpp b/src/catch2/catch_assertionhandler.cpp index 892e78a4..03834f1e 100644 --- a/src/catch2/catch_assertionhandler.cpp +++ b/src/catch2/catch_assertionhandler.cpp @@ -16,6 +16,7 @@ #include #include #include +#include namespace Catch { diff --git a/src/catch2/catch_capture_matchers.h b/src/catch2/catch_capture_matchers.h index 7c8c8fa6..3f883a39 100644 --- a/src/catch2/catch_capture_matchers.h +++ b/src/catch2/catch_capture_matchers.h @@ -10,11 +10,6 @@ #include #include -#include -#include -#include -#include -#include #include namespace Catch { diff --git a/src/catch2/catch_decomposer.h b/src/catch2/catch_decomposer.h index e42cfa79..084ad5b3 100644 --- a/src/catch2/catch_decomposer.h +++ b/src/catch2/catch_decomposer.h @@ -23,6 +23,14 @@ #pragma warning(disable:4800) // Forcing result to true or false #endif +#ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wsign-compare" +#elif defined __GNUC__ +# pragma GCC diagnostic push +# pragma clang diagnostic ignored "-Wsign-compare" +#endif + namespace Catch { struct ITransientExpression { @@ -243,5 +251,10 @@ namespace Catch { #ifdef _MSC_VER #pragma warning(pop) #endif +#ifdef __clang__ +# pragma clang diagnostic pop +#elif defined __GNUC__ +# pragma GCC diagnostic pop +#endif #endif // TWOBLUECUBES_CATCH_DECOMPOSER_H_INCLUDED diff --git a/src/catch2/catch_test_macros.hpp b/src/catch2/catch_test_macros.hpp index 0be39bbb..c29c7c14 100644 --- a/src/catch2/catch_test_macros.hpp +++ b/src/catch2/catch_test_macros.hpp @@ -7,6 +7,10 @@ #define TWOBLUECUBES_CATCH_TEST_MACROS_HPP_INCLUDED #include +#include +#include +#include +#include #include #if !defined(CATCH_CONFIG_DISABLE) diff --git a/src/catch2/catch_tostring.h b/src/catch2/catch_tostring.h index 947c269b..cba24628 100644 --- a/src/catch2/catch_tostring.h +++ b/src/catch2/catch_tostring.h @@ -649,6 +649,8 @@ struct ratio_string { } #endif // CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER +#include + #define INTERNAL_CATCH_REGISTER_ENUM( enumName, ... ) \ namespace Catch { \ template<> struct StringMaker { \ diff --git a/tests/ExtraTests/X01-PrefixedMacros.cpp b/tests/ExtraTests/X01-PrefixedMacros.cpp index 3626fd10..40b98978 100644 --- a/tests/ExtraTests/X01-PrefixedMacros.cpp +++ b/tests/ExtraTests/X01-PrefixedMacros.cpp @@ -4,7 +4,9 @@ #include // This won't provide full coverage, but it might be worth checking // the other branch as well -#include +#include +#include +#include #include #include diff --git a/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp b/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp index fe3b95c9..310746ac 100644 --- a/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp @@ -1,12 +1,11 @@ /* - * Created by Phil on 13/5/2013. - * Copyright 2014 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include +#include #include #include #include diff --git a/tests/SelfTest/IntrospectiveTests/Details.tests.cpp b/tests/SelfTest/IntrospectiveTests/Details.tests.cpp index 77503fe9..5a24663c 100644 --- a/tests/SelfTest/IntrospectiveTests/Details.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Details.tests.cpp @@ -3,7 +3,8 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include #if defined(_MSC_VER) #pragma warning(push) diff --git a/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp b/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp index a8aaf967..3406480e 100644 --- a/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp @@ -1,4 +1,7 @@ -#include +#include +#include +#include +#include // Tests of generator implementation details TEST_CASE("Generators internals", "[generators][internals]") { @@ -175,6 +178,7 @@ TEST_CASE("Generators internals", "[generators][internals]") { } SECTION("Floating Point") { + using Catch::Detail::Approx; SECTION("Exact") { const auto rangeStart = -1.; const auto rangeEnd = 1.; diff --git a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp index 415ce71c..1c94bb1a 100644 --- a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp @@ -391,7 +391,7 @@ TEST_CASE("measure", "[benchmark]") { TEST_CASE("run benchmark", "[benchmark]") { counting_clock::set_rate(1000); auto start = counting_clock::now(); - + Catch::Benchmark::Benchmark bench{ "Test Benchmark", [](Catch::Benchmark::Chronometer meter) { counting_clock::set_rate(100000); meter.measure([] { return counting_clock::now(); }); diff --git a/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp b/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp index d244bf91..cafd5e41 100644 --- a/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/PartTracker.tests.cpp @@ -1,14 +1,12 @@ /* - * Created by Phil on 1/10/2015. - * Copyright 2015 Two Blue Cubes Ltd - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ + +#include #include #include -#include using namespace Catch; diff --git a/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp b/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp index b226e6d9..f1ff847a 100644 --- a/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Martin on 06/10/2019. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include - +#include #include TEST_CASE("Our PCG implementation provides expected results for known seeds", "[rng]") { diff --git a/tests/SelfTest/IntrospectiveTests/String.tests.cpp b/tests/SelfTest/IntrospectiveTests/String.tests.cpp index 427dfe6a..6b94cdc8 100644 --- a/tests/SelfTest/IntrospectiveTests/String.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/String.tests.cpp @@ -1,7 +1,6 @@ +#include #include -#include - #include TEST_CASE( "StringRef", "[Strings][StringRef]" ) { diff --git a/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp b/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp index 54a57bb1..69e72aa7 100644 --- a/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/StringManip.tests.cpp @@ -1,7 +1,7 @@ +#include +#include #include -#include - static const char * const no_whitespace = "There is no extra whitespace here"; static const char * const leading_whitespace = " \r \t\n There is no extra whitespace here"; static const char * const trailing_whitespace = "There is no extra whitespace here \t \n \r "; diff --git a/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp b/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp index e5ba3570..98c88cf8 100644 --- a/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Tag.tests.cpp @@ -1,13 +1,13 @@ /* - * Created by Phil on 27/06/2014. - * Copyright 2014 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include #include +#include +#include TEST_CASE( "Tag alias can be registered against tag patterns" ) { diff --git a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp index 85e2c658..20a40160 100644 --- a/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/ToString.tests.cpp @@ -1,6 +1,6 @@ -#include - #include +#include +#include enum class EnumClass3 { Value1, Value2, Value3, Value4 }; diff --git a/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp b/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp index 0f162b81..b764e3b5 100644 --- a/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Xml.tests.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include diff --git a/tests/SelfTest/UsageTests/Approx.tests.cpp b/tests/SelfTest/UsageTests/Approx.tests.cpp index ff32e841..181d2d4c 100644 --- a/tests/SelfTest/UsageTests/Approx.tests.cpp +++ b/tests/SelfTest/UsageTests/Approx.tests.cpp @@ -6,10 +6,13 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include #include +using Catch::Detail::Approx; + namespace { namespace ApproxTests { #ifndef APPROX_TEST_HELPERS_INCLUDED // Don't compile this more than once per TU diff --git a/tests/SelfTest/UsageTests/BDD.tests.cpp b/tests/SelfTest/UsageTests/BDD.tests.cpp index 84c4614c..131340fa 100644 --- a/tests/SelfTest/UsageTests/BDD.tests.cpp +++ b/tests/SelfTest/UsageTests/BDD.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Phil on 29/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include namespace { namespace BDDTests { diff --git a/tests/SelfTest/UsageTests/Class.tests.cpp b/tests/SelfTest/UsageTests/Class.tests.cpp index 8f1bbb0f..095686a1 100644 --- a/tests/SelfTest/UsageTests/Class.tests.cpp +++ b/tests/SelfTest/UsageTests/Class.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Phil on 09/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include namespace{ namespace ClassTests { diff --git a/tests/SelfTest/UsageTests/Compilation.tests.cpp b/tests/SelfTest/UsageTests/Compilation.tests.cpp index 4df3ea5a..4134ec54 100644 --- a/tests/SelfTest/UsageTests/Compilation.tests.cpp +++ b/tests/SelfTest/UsageTests/Compilation.tests.cpp @@ -1,6 +1,4 @@ /* - * Created by Martin on 17/02/2017. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ @@ -30,7 +28,8 @@ std::ostream& operator<<(std::ostream& out, foo::helper_1403 const&) { } /////////////////////////////// -#include +#include +#include #include @@ -218,7 +217,7 @@ namespace { namespace CompilationTests { REQUIRE( y.v == 0 ); REQUIRE( 0 == y.v ); } - + TEST_CASE("#1319: Sections can have description (even if it is not saved", "[compilation]") { SECTION("SectionName", "This is a long form section description") { SUCCEED(); diff --git a/tests/SelfTest/UsageTests/Condition.tests.cpp b/tests/SelfTest/UsageTests/Condition.tests.cpp index 153eaf7a..489d6994 100644 --- a/tests/SelfTest/UsageTests/Condition.tests.cpp +++ b/tests/SelfTest/UsageTests/Condition.tests.cpp @@ -1,7 +1,4 @@ /* - * Created by Phil on 08/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ @@ -11,10 +8,13 @@ // Wdouble-promotion is not supported until 3.8 # if (__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ > 7) # pragma clang diagnostic ignored "-Wdouble-promotion" -# endif +# endif #endif -#include +#include +#include + +using Catch::Detail::Approx; #include #include diff --git a/tests/SelfTest/UsageTests/Decomposition.tests.cpp b/tests/SelfTest/UsageTests/Decomposition.tests.cpp index 5309bd60..15feefc2 100644 --- a/tests/SelfTest/UsageTests/Decomposition.tests.cpp +++ b/tests/SelfTest/UsageTests/Decomposition.tests.cpp @@ -1,7 +1,4 @@ /* - * Created by Martin on 27/5/2017. - * Copyright 2017 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ @@ -26,7 +23,7 @@ std::ostream& operator<<(std::ostream& o, truthy) { } // end anonymous namespace -#include +#include TEST_CASE( "Reconstruction should be based on stringification: #914" , "[Decomposition][failing][.]") { CHECK(truthy(false)); diff --git a/tests/SelfTest/UsageTests/EnumToString.tests.cpp b/tests/SelfTest/UsageTests/EnumToString.tests.cpp index 02e90305..171e795f 100644 --- a/tests/SelfTest/UsageTests/EnumToString.tests.cpp +++ b/tests/SelfTest/UsageTests/EnumToString.tests.cpp @@ -1,4 +1,5 @@ -#include +#include +#include namespace { diff --git a/tests/SelfTest/UsageTests/Exception.tests.cpp b/tests/SelfTest/UsageTests/Exception.tests.cpp index d0f135b7..aafe928e 100644 --- a/tests/SelfTest/UsageTests/Exception.tests.cpp +++ b/tests/SelfTest/UsageTests/Exception.tests.cpp @@ -1,12 +1,10 @@ /* - * Created by Phil on 09/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include #include #include diff --git a/tests/SelfTest/UsageTests/Generators.tests.cpp b/tests/SelfTest/UsageTests/Generators.tests.cpp index 59a1baef..ca03f026 100644 --- a/tests/SelfTest/UsageTests/Generators.tests.cpp +++ b/tests/SelfTest/UsageTests/Generators.tests.cpp @@ -1,4 +1,6 @@ -#include +#include +#include +#include #include diff --git a/tests/SelfTest/UsageTests/Matchers.tests.cpp b/tests/SelfTest/UsageTests/Matchers.tests.cpp index 130b51b2..3664cf50 100644 --- a/tests/SelfTest/UsageTests/Matchers.tests.cpp +++ b/tests/SelfTest/UsageTests/Matchers.tests.cpp @@ -1,15 +1,18 @@ /* - * Created by Phil on 21/02/2017. - * Copyright 2017 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include +#include +#include +#include +#include +#include #include #include +#include #ifdef __clang__ #pragma clang diagnostic push diff --git a/tests/SelfTest/UsageTests/Message.tests.cpp b/tests/SelfTest/UsageTests/Message.tests.cpp index 92fca804..a30c2e9e 100644 --- a/tests/SelfTest/UsageTests/Message.tests.cpp +++ b/tests/SelfTest/UsageTests/Message.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Phil on 09/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include TEST_CASE( "INFO and WARN do not abort tests", "[messages][.]" ) { diff --git a/tests/SelfTest/UsageTests/Misc.tests.cpp b/tests/SelfTest/UsageTests/Misc.tests.cpp index a503bc0a..37210a4c 100644 --- a/tests/SelfTest/UsageTests/Misc.tests.cpp +++ b/tests/SelfTest/UsageTests/Misc.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Phil on 29/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #ifdef __clang__ # pragma clang diagnostic ignored "-Wc++98-compat" diff --git a/tests/SelfTest/UsageTests/ToStringByte.tests.cpp b/tests/SelfTest/UsageTests/ToStringByte.tests.cpp index 15044ab3..ceb94e22 100644 --- a/tests/SelfTest/UsageTests/ToStringByte.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringByte.tests.cpp @@ -1,4 +1,4 @@ -#include +#include #if defined(CATCH_CONFIG_CPP17_BYTE) diff --git a/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp b/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp index 1b01c7e8..a2be85a3 100644 --- a/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringChrono.tests.cpp @@ -1,5 +1,5 @@ #define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER -#include +#include #include #include diff --git a/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp b/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp index f6d936cc..c738b32c 100644 --- a/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp @@ -1,12 +1,10 @@ /* - * Created by Martin on 17/02/2017. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER -#include +#include #include #include diff --git a/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp b/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp index 46456163..2b7ac3ec 100644 --- a/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringOptional.tests.cpp @@ -1,5 +1,5 @@ #define CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER -#include +#include #if defined(CATCH_CONFIG_CPP17_OPTIONAL) diff --git a/tests/SelfTest/UsageTests/ToStringPair.tests.cpp b/tests/SelfTest/UsageTests/ToStringPair.tests.cpp index ba734f17..3b8608aa 100644 --- a/tests/SelfTest/UsageTests/ToStringPair.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringPair.tests.cpp @@ -1,5 +1,5 @@ #define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER -#include +#include TEST_CASE( "std::pair -> toString", "[toString][pair]" ) { std::pair value( 34, "xyzzy" ); diff --git a/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp b/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp index 983ba550..1d1a7ab0 100644 --- a/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringTuple.tests.cpp @@ -1,5 +1,5 @@ #define CATCH_CONFIG_ENABLE_TUPLE_STRINGMAKER -#include +#include #include diff --git a/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp b/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp index 32471a0a..de9748cd 100644 --- a/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringVariant.tests.cpp @@ -1,5 +1,5 @@ #define CATCH_CONFIG_ENABLE_VARIANT_STRINGMAKER -#include +#include #if defined(CATCH_CONFIG_CPP17_VARIANT) diff --git a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp index 0a5eac40..4c10207e 100644 --- a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp @@ -13,7 +13,7 @@ std::string fallbackStringifier(T const&) { } #define CATCH_CONFIG_FALLBACK_STRINGIFIER fallbackStringifier -#include +#include diff --git a/tests/SelfTest/UsageTests/Tricky.tests.cpp b/tests/SelfTest/UsageTests/Tricky.tests.cpp index c2afdca1..e9803c76 100644 --- a/tests/SelfTest/UsageTests/Tricky.tests.cpp +++ b/tests/SelfTest/UsageTests/Tricky.tests.cpp @@ -1,7 +1,4 @@ /* - * Created by Phil on 09/11/2010. - * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ @@ -15,7 +12,7 @@ // that is triggered when compiling as Win32|Release #endif -#include +#include #include #include diff --git a/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp b/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp index de8dc187..c8754dee 100644 --- a/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp +++ b/tests/SelfTest/UsageTests/VariadicMacros.tests.cpp @@ -1,12 +1,9 @@ /* - * Created by Phil on 15/03/2013. - * Copyright 2013 Two Blue Cubes Ltd. All rights reserved. - * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include TEST_CASE()