From d5e08a4beb09a8c1affb6d145b1a7b2805a9bb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 10 May 2020 18:24:53 +0200 Subject: [PATCH] Rename catch_assertionhandler -> catch_assertion_handler --- src/CMakeLists.txt | 4 ++-- src/catch2/catch_all.hpp | 2 +- src/catch2/catch_assertion_result.hpp | 2 +- ...tch_assertionhandler.cpp => catch_assertion_handler.cpp} | 6 +----- ...tch_assertionhandler.hpp => catch_assertion_handler.hpp} | 4 +++- src/catch2/internal/catch_exception_translator_registry.cpp | 2 +- src/catch2/internal/catch_run_context.hpp | 2 +- src/catch2/internal/catch_test_macro_impl.hpp | 2 +- 8 files changed, 11 insertions(+), 13 deletions(-) rename src/catch2/internal/{catch_assertionhandler.cpp => catch_assertion_handler.cpp} (96%) rename src/catch2/internal/{catch_assertionhandler.hpp => catch_assertion_handler.hpp} (96%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ecabdb3f..41d93ae0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -38,7 +38,7 @@ set(INTERNAL_HEADERS ${SOURCES_DIR}/matchers/internal/catch_matchers_impl.hpp ${SOURCES_DIR}/internal/catch_container_nonmembers.hpp ${SOURCES_DIR}/catch_approx.hpp - ${SOURCES_DIR}/internal/catch_assertionhandler.hpp + ${SOURCES_DIR}/internal/catch_assertion_handler.hpp ${SOURCES_DIR}/catch_assertion_info.hpp ${SOURCES_DIR}/catch_assertion_result.hpp ${SOURCES_DIR}/internal/catch_test_macro_impl.hpp @@ -130,7 +130,7 @@ set(INTERNAL_HEADERS ) set(IMPL_SOURCES ${SOURCES_DIR}/catch_approx.cpp - ${SOURCES_DIR}/internal/catch_assertionhandler.cpp + ${SOURCES_DIR}/internal/catch_assertion_handler.cpp ${SOURCES_DIR}/catch_assertion_result.cpp ${SOURCES_DIR}/matchers/internal/catch_matchers_combined_tu.cpp ${SOURCES_DIR}/internal/catch_commandline.cpp diff --git a/src/catch2/catch_all.hpp b/src/catch2/catch_all.hpp index e39204aa..3920e822 100644 --- a/src/catch2/catch_all.hpp +++ b/src/catch2/catch_all.hpp @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/catch2/catch_assertion_result.hpp b/src/catch2/catch_assertion_result.hpp index 1afcf7c9..56b3d1cb 100644 --- a/src/catch2/catch_assertion_result.hpp +++ b/src/catch2/catch_assertion_result.hpp @@ -13,7 +13,7 @@ #include #include #include -#include +#include namespace Catch { diff --git a/src/catch2/internal/catch_assertionhandler.cpp b/src/catch2/internal/catch_assertion_handler.cpp similarity index 96% rename from src/catch2/internal/catch_assertionhandler.cpp rename to src/catch2/internal/catch_assertion_handler.cpp index b16d356d..e21294d5 100644 --- a/src/catch2/internal/catch_assertionhandler.cpp +++ b/src/catch2/internal/catch_assertion_handler.cpp @@ -6,7 +6,7 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ -#include +#include #include #include #include @@ -32,10 +32,6 @@ namespace Catch { LazyExpression::LazyExpression( LazyExpression const& other ) : m_isNegated( other.m_isNegated ) {} - LazyExpression::operator bool() const { - return m_transientExpression != nullptr; - } - auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& { if( lazyExpr.m_isNegated ) os << "!"; diff --git a/src/catch2/internal/catch_assertionhandler.hpp b/src/catch2/internal/catch_assertion_handler.hpp similarity index 96% rename from src/catch2/internal/catch_assertionhandler.hpp rename to src/catch2/internal/catch_assertion_handler.hpp index b3bf031d..0512f17f 100644 --- a/src/catch2/internal/catch_assertionhandler.hpp +++ b/src/catch2/internal/catch_assertion_handler.hpp @@ -31,7 +31,9 @@ namespace Catch { LazyExpression( LazyExpression const& other ); LazyExpression& operator = ( LazyExpression const& ) = delete; - explicit operator bool() const; + explicit operator bool() const { + return m_transientExpression != nullptr; + } friend auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream&; }; diff --git a/src/catch2/internal/catch_exception_translator_registry.cpp b/src/catch2/internal/catch_exception_translator_registry.cpp index b09dc05f..d99ec839 100644 --- a/src/catch2/internal/catch_exception_translator_registry.cpp +++ b/src/catch2/internal/catch_exception_translator_registry.cpp @@ -7,7 +7,7 @@ */ #include -#include +#include #include #include diff --git a/src/catch2/internal/catch_run_context.hpp b/src/catch2/internal/catch_run_context.hpp index bfbd8bcf..10e50b7b 100644 --- a/src/catch2/internal/catch_run_context.hpp +++ b/src/catch2/internal/catch_run_context.hpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include diff --git a/src/catch2/internal/catch_test_macro_impl.hpp b/src/catch2/internal/catch_test_macro_impl.hpp index effd5884..07d0a7d8 100644 --- a/src/catch2/internal/catch_test_macro_impl.hpp +++ b/src/catch2/internal/catch_test_macro_impl.hpp @@ -8,7 +8,7 @@ #ifndef TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED #define TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED -#include +#include #include #include