Skip to content

Commit bc68b9f

Browse files
committed
More include simplifications
1 parent 67d513a commit bc68b9f

11 files changed

+6
-14
lines changed

include/internal/catch_commandline.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "catch_clara.h"
1414

1515
#include <fstream>
16+
#include <ctime>
1617

1718
namespace Catch {
1819

include/internal/catch_config.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <memory>
1717
#include <vector>
1818
#include <string>
19-
#include <iostream>
20-
#include <ctime>
2119
#include <stdexcept>
2220

2321
#ifndef CATCH_CONFIG_CONSOLE_WIDTH

include/internal/catch_debugger.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#include "catch_debugger.h"
1313

14-
#include <iostream>
15-
1614
#ifdef CATCH_PLATFORM_MAC
1715

1816
#include <assert.h>

include/internal/catch_interfaces_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
99
#define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
1010

11-
#include <iostream>
11+
#include <iosfwd>
1212
#include <string>
1313
#include <vector>
1414

include/internal/catch_interfaces_reporter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <string>
2222
#include <ostream>
2323
#include <map>
24-
#include <assert.h>
2524

2625
namespace Catch
2726
{

include/internal/catch_notimplemented_exception.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED
1010

1111
#include "catch_common.h"
12-
#include <ostream>
1312

1413
namespace Catch {
1514

include/internal/catch_notimplemented_exception.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED
1010

1111
#include "catch_notimplemented_exception.h"
12-
#include <ostream>
12+
#include <sstream>
1313

1414
namespace Catch {
1515

include/internal/catch_section.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "catch_section.h"
1212
#include "catch_capture.hpp"
1313
#include "catch_compiler_capabilities.h"
14-
#include "catch_timer.h"
1514

1615
namespace Catch {
1716

include/internal/catch_section_info.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "catch_common.h"
1212
#include "catch_totals.hpp"
1313

14+
#include <string>
15+
1416
namespace Catch {
1517

1618
struct SectionInfo {

include/internal/catch_section_info.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
#ifndef TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED
99
#define TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED
1010

11-
#include "catch_common.h"
12-
13-
#include <map>
14-
#include <string>
11+
#include "catch_section_info.h"
1512

1613
namespace Catch {
1714

0 commit comments

Comments
 (0)