1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-01-16 07:08:01 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Martin Hořeňovský
b4a61cfd29
Remove superfluous overload of operator== 2020-05-18 21:32:08 +02:00
Martin Hořeňovský
d86834e5b5
Push down #include <ostream> to .cpp files 2020-05-18 21:31:41 +02:00
Martin Hořeňovský
39e093021c
Remove some superfluous includes 2020-05-18 20:55:21 +02:00
7 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,6 @@
#include <cstdio>
#include <cstring>
#include <fstream>
#include <sstream>
#if defined(CATCH_CONFIG_NEW_CAPTURE)

View File

@ -5,6 +5,8 @@
#include <catch2/reporters/catch_reporter_automake.hpp>
#include <ostream>
namespace Catch {
AutomakeReporter::~AutomakeReporter() {}

View File

@ -15,6 +15,7 @@
#include <cstring>
#include <cfloat>
#include <cstdio>
#include <ostream>
#include <cassert>
#include <memory>

View File

@ -16,7 +16,7 @@
#include <cstdio>
#include <cassert>
#include <memory>
#include <ostream>
#include <iosfwd>
namespace Catch {
void prepareExpandedExpression(AssertionResult& result);
@ -107,9 +107,6 @@ namespace Catch {
bool operator == (SectionNode const& other) const {
return stats.sectionInfo.lineInfo == other.stats.sectionInfo.lineInfo;
}
bool operator == (std::shared_ptr<SectionNode> const& other) const {
return operator==(*other);
}
SectionStats stats;
using ChildSections = std::vector<std::shared_ptr<SectionNode>>;

View File

@ -10,6 +10,8 @@
#include <catch2/internal/catch_console_colour.hpp>
#include <catch2/internal/catch_string_manip.hpp>
#include <ostream>
namespace {
#ifdef CATCH_PLATFORM_MAC

View File

@ -8,6 +8,7 @@
#include <catch2/internal/catch_string_manip.hpp>
#include <algorithm>
#include <ostream>
namespace Catch {

View File

@ -15,7 +15,6 @@
#include <iostream>
#include <cerrno>
#include <limits>
#include <sstream>
#include <array>
namespace { namespace MiscTests {