catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Moved some std includes out from catch_common.h
- Commit
9012f9596405c979aed23d43269033c37d6595d1- Author
- Martin Hořeňovský ·
- Parents
324260f25331
Changes
include/internal/catch_common.h | 2 -- include/internal/catch_common.hpp | 1 + include/internal/catch_config.hpp | 1 + include/internal/catch_test_case_info.hpp | 2 ++ include/internal/catch_test_case_tracker.hpp | 1 + include/internal/catch_wildcard_pattern.hpp | 3 +++ 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h index 455a2fab..6bdcccb8 100644 --- a/include/internal/catch_common.h +++ b/include/internal/catch_common.h @@ -22,9 +22,7 @@ #define INTERNAL_CATCH_STRINGIFY( expr ) INTERNAL_CATCH_STRINGIFY2( expr ) #include <sstream> -#include <stdexcept> #include <algorithm> -#include <cctype> #include "catch_compiler_capabilities.h" diff --git a/include/internal/catch_common.hpp b/include/internal/catch_common.hpp index cca775e5..339f0407 100644 --- a/include/internal/catch_common.hpp +++ b/include/internal/catch_common.hpp @@ -11,6 +11,7 @@ #include "catch_common.h" #include <cstring> +#include <cctype> namespace Catch { diff --git a/include/internal/catch_config.hpp b/include/internal/catch_config.hpp index 437686a8..2f4c25e9 100644 --- a/include/internal/catch_config.hpp +++ b/include/internal/catch_config.hpp @@ -18,6 +18,7 @@ #include <string> #include <iostream> #include <ctime> +#include <stdexcept> #ifndef CATCH_CONFIG_CONSOLE_WIDTH #define CATCH_CONFIG_CONSOLE_WIDTH 80 diff --git a/include/internal/catch_test_case_info.hpp b/include/internal/catch_test_case_info.hpp index abba5d99..b4ca53ad 100644 --- a/include/internal/catch_test_case_info.hpp +++ b/include/internal/catch_test_case_info.hpp @@ -13,6 +13,8 @@ #include "catch_interfaces_testcase.h" #include "catch_common.h" +#include <cctype> + namespace Catch { inline TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) { diff --git a/include/internal/catch_test_case_tracker.hpp b/include/internal/catch_test_case_tracker.hpp index 5a866336..9526e281 100644 --- a/include/internal/catch_test_case_tracker.hpp +++ b/include/internal/catch_test_case_tracker.hpp @@ -16,6 +16,7 @@ #include <assert.h> #include <vector> #include <iterator> +#include <stdexcept> namespace Catch { namespace TestCaseTracking { diff --git a/include/internal/catch_wildcard_pattern.hpp b/include/internal/catch_wildcard_pattern.hpp index 6ce66a4d..a922912d 100644 --- a/include/internal/catch_wildcard_pattern.hpp +++ b/include/internal/catch_wildcard_pattern.hpp @@ -10,6 +10,9 @@ #include "catch_common.h" +#include <stdexcept> + + namespace Catch { class WildcardPattern {