-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: mock classes for failing apple clang dynamic cast
- Loading branch information
Showing
8 changed files
with
231 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// BaseClass.cpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#include "BaseClass.hpp" | ||
|
||
BaseClass::BaseClass() { | ||
|
||
}; | ||
|
||
BaseClass::~BaseClass() { | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// BaseClass.hpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#ifndef BaseClass_hpp | ||
#define BaseClass_hpp | ||
|
||
#include <stdio.h> | ||
|
||
class BaseClass | ||
{ | ||
public: | ||
explicit BaseClass(); | ||
virtual ~BaseClass(); | ||
}; | ||
|
||
#endif /* BaseClass_hpp */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/coreComponents/codingUtilities/tests/DerivedClassFinal.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// DerivedClassFinal.cpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#include "DerivedClassFinal.hpp" | ||
|
||
Derived::Derived() = default; | ||
|
23 changes: 23 additions & 0 deletions
23
src/coreComponents/codingUtilities/tests/DerivedClassFinal.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// DerivedClassFinal.hpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#ifndef DerivedClassFinal_hpp | ||
#define DerivedClassFinal_hpp | ||
|
||
#include <stdio.h> | ||
|
||
class Derived final : public Base | ||
{ | ||
public: | ||
explicit Derived(); | ||
|
||
virtual ~Derived() noexcept override { | ||
|
||
}; | ||
}; | ||
|
||
#endif /* DerivedClassFinal_hpp */ |
10 changes: 10 additions & 0 deletions
10
src/coreComponents/codingUtilities/tests/DerivedFinalClass.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// DerivedFinalClass.cpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#include "DerivedFinalClass.hpp" | ||
|
||
DerivedFinalClass::DerivedFinalClass() = default; |
24 changes: 24 additions & 0 deletions
24
src/coreComponents/codingUtilities/tests/DerivedFinalClass.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// DerivedFinalClass.hpp | ||
// testRTTypes | ||
// | ||
// Created by Omar Duran on 12/16/24. | ||
// | ||
|
||
#ifndef DerivedFinalClass_hpp | ||
#define DerivedFinalClass_hpp | ||
|
||
#include <stdio.h> | ||
#include "BaseClass.hpp" | ||
|
||
class DerivedFinalClass final : public BaseClass | ||
{ | ||
public: | ||
explicit DerivedFinalClass(); | ||
|
||
virtual ~DerivedFinalClass() noexcept override { | ||
|
||
}; | ||
}; | ||
|
||
#endif /* DerivedFinalClass_hpp */ |
Oops, something went wrong.