From bc68b9f454021455f35fc005e59663a62ed71bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 12 Feb 2017 13:34:55 +0100 Subject: [PATCH] More include simplifications --- include/internal/catch_commandline.hpp | 1 + include/internal/catch_config.hpp | 2 -- include/internal/catch_debugger.hpp | 2 -- include/internal/catch_interfaces_config.h | 2 +- include/internal/catch_interfaces_reporter.h | 1 - include/internal/catch_notimplemented_exception.h | 1 - include/internal/catch_notimplemented_exception.hpp | 2 +- include/internal/catch_section.hpp | 1 - include/internal/catch_section_info.h | 2 ++ include/internal/catch_section_info.hpp | 5 +---- include/internal/catch_test_case_registry_impl.hpp | 1 - 11 files changed, 6 insertions(+), 14 deletions(-) diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index 133dbf5c..742f01a4 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -13,6 +13,7 @@ #include "catch_clara.h" #include +#include namespace Catch { diff --git a/include/internal/catch_config.hpp b/include/internal/catch_config.hpp index 2f4c25e9..174850bf 100644 --- a/include/internal/catch_config.hpp +++ b/include/internal/catch_config.hpp @@ -16,8 +16,6 @@ #include #include #include -#include -#include #include #ifndef CATCH_CONFIG_CONSOLE_WIDTH diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp index 63d476bb..47daf8ad 100644 --- a/include/internal/catch_debugger.hpp +++ b/include/internal/catch_debugger.hpp @@ -11,8 +11,6 @@ #include "catch_debugger.h" -#include - #ifdef CATCH_PLATFORM_MAC #include diff --git a/include/internal/catch_interfaces_config.h b/include/internal/catch_interfaces_config.h index 08226c88..5730a8cd 100644 --- a/include/internal/catch_interfaces_config.h +++ b/include/internal/catch_interfaces_config.h @@ -8,7 +8,7 @@ #ifndef TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED #define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED -#include +#include #include #include diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h index 3aebab98..6c47d8e4 100644 --- a/include/internal/catch_interfaces_reporter.h +++ b/include/internal/catch_interfaces_reporter.h @@ -21,7 +21,6 @@ #include #include #include -#include namespace Catch { diff --git a/include/internal/catch_notimplemented_exception.h b/include/internal/catch_notimplemented_exception.h index 2e38b98f..128fff28 100644 --- a/include/internal/catch_notimplemented_exception.h +++ b/include/internal/catch_notimplemented_exception.h @@ -9,7 +9,6 @@ #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED #include "catch_common.h" -#include namespace Catch { diff --git a/include/internal/catch_notimplemented_exception.hpp b/include/internal/catch_notimplemented_exception.hpp index 4d263f1b..e4afdc67 100644 --- a/include/internal/catch_notimplemented_exception.hpp +++ b/include/internal/catch_notimplemented_exception.hpp @@ -9,7 +9,7 @@ #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED #include "catch_notimplemented_exception.h" -#include +#include namespace Catch { diff --git a/include/internal/catch_section.hpp b/include/internal/catch_section.hpp index de65c4cd..a5d1b6d5 100644 --- a/include/internal/catch_section.hpp +++ b/include/internal/catch_section.hpp @@ -11,7 +11,6 @@ #include "catch_section.h" #include "catch_capture.hpp" #include "catch_compiler_capabilities.h" -#include "catch_timer.h" namespace Catch { diff --git a/include/internal/catch_section_info.h b/include/internal/catch_section_info.h index 00b65600..c9f1c7f1 100644 --- a/include/internal/catch_section_info.h +++ b/include/internal/catch_section_info.h @@ -11,6 +11,8 @@ #include "catch_common.h" #include "catch_totals.hpp" +#include + namespace Catch { struct SectionInfo { diff --git a/include/internal/catch_section_info.hpp b/include/internal/catch_section_info.hpp index 6258a281..aebbf6a5 100644 --- a/include/internal/catch_section_info.hpp +++ b/include/internal/catch_section_info.hpp @@ -8,10 +8,7 @@ #ifndef TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED #define TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED -#include "catch_common.h" - -#include -#include +#include "catch_section_info.h" namespace Catch { diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp index 0565b54a..316c6c2c 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -16,7 +16,6 @@ #include #include #include -#include #include