struct -> class normalization for various interface types
This commit is contained in:
23 files changed
+66
-53
No files matched your search
@@ -16,7 +16,7 @@
|
||||
namespace Catch {
|
||||
|
||||
struct AssertionResultData;
|
||||
struct IResultCapture;
|
||||
class IResultCapture;
|
||||
class RunContext;
|
||||
|
||||
struct AssertionReaction {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
namespace Catch {
|
||||
|
||||
enum class ColourMode : std::uint8_t;
|
||||
struct IConfig;
|
||||
class IConfig;
|
||||
class IStream;
|
||||
|
||||
struct Colour {
|
||||
|
||||
@@ -10,19 +10,19 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct IResultCapture;
|
||||
struct IConfig;
|
||||
class IResultCapture;
|
||||
class IConfig;
|
||||
|
||||
struct IContext
|
||||
{
|
||||
class IContext {
|
||||
public:
|
||||
virtual ~IContext(); // = default
|
||||
|
||||
virtual IResultCapture* getResultCapture() = 0;
|
||||
virtual IConfig const* getConfig() const = 0;
|
||||
};
|
||||
|
||||
struct IMutableContext : IContext
|
||||
{
|
||||
class IMutableContext : public IContext {
|
||||
public:
|
||||
virtual ~IMutableContext(); // = default
|
||||
virtual void setResultCapture( IResultCapture* resultCapture ) = 0;
|
||||
virtual void setConfig( IConfig const* config ) = 0;
|
||||
|
||||
@@ -33,7 +33,11 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct ITransientExpression {
|
||||
class ITransientExpression {
|
||||
bool m_isBinaryExpression;
|
||||
bool m_result;
|
||||
|
||||
public:
|
||||
auto isBinaryExpression() const -> bool { return m_isBinaryExpression; }
|
||||
auto getResult() const -> bool { return m_result; }
|
||||
virtual void streamReconstructedExpression( std::ostream &os ) const = 0;
|
||||
@@ -51,8 +55,6 @@ namespace Catch {
|
||||
// complain if it's not here :-(
|
||||
virtual ~ITransientExpression(); // = default;
|
||||
|
||||
bool m_isBinaryExpression;
|
||||
bool m_result;
|
||||
friend std::ostream& operator<<(std::ostream& out, ITransientExpression const& expr) {
|
||||
expr.streamReconstructedExpression(out);
|
||||
return out;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct ITransientExpression;
|
||||
class ITransientExpression;
|
||||
|
||||
class LazyExpression {
|
||||
friend class AssertionHandler;
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct IMutableContext;
|
||||
struct IGeneratorTracker;
|
||||
struct IConfig;
|
||||
class IMutableContext;
|
||||
class IGeneratorTracker;
|
||||
class IConfig;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
namespace Catch {
|
||||
|
||||
class TestCaseHandle;
|
||||
struct IConfig;
|
||||
class IConfig;
|
||||
class TestSpec;
|
||||
|
||||
std::vector<TestCaseHandle> sortTests( IConfig const& config, std::vector<TestCaseHandle> const& unsortedTestCases );
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct ITagAliasRegistry;
|
||||
class ITagAliasRegistry;
|
||||
|
||||
class TestSpecParser {
|
||||
enum Mode{ None, Name, QuotedName, Tag, EscapedName };
|
||||
|
||||
Reference in new issue
Block a user