Modify virtual default destructor specification to better match core guidelines.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2020-05-03 20:29:18 +01:00
parent 5eedbe1225
commit de800fe9f1
5 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@ namespace EightBit {
[[nodiscard]] static constexpr auto promoteNibble(const int value) { return value << 4; } [[nodiscard]] static constexpr auto promoteNibble(const int value) { return value << 4; }
[[nodiscard]] static constexpr auto demoteNibble(const int value) { return highNibble(value); } [[nodiscard]] static constexpr auto demoteNibble(const int value) { return highNibble(value); }
virtual ~Chip() = default; ~Chip() = default;
protected: protected:
Chip() = default; Chip() = default;

View File

@ -7,7 +7,7 @@
namespace EightBit { namespace EightBit {
class ClockedChip : public Chip { class ClockedChip : public Chip {
public: public:
virtual ~ClockedChip() = default; ~ClockedChip() = default;
Signal<EventArgs> Ticked; Signal<EventArgs> Ticked;

View File

@ -34,10 +34,10 @@ namespace EightBit {
} }
}; };
virtual ~IntelProcessor() = default; ~IntelProcessor() = default;
[[nodiscard]] const auto& getDecodedOpcode(const size_t i) const noexcept { [[nodiscard]] const auto& getDecodedOpcode(const size_t i) const noexcept {
return m_decodedOpcodes.at(i); return m_decodedOpcodes[i];
} }
[[nodiscard]] auto& MEMPTR() noexcept { return m_memptr; } [[nodiscard]] auto& MEMPTR() noexcept { return m_memptr; }
@ -111,13 +111,13 @@ namespace EightBit {
[[nodiscard]] static auto calculateHalfCarryAdd(const uint8_t before, const uint8_t value, const int calculation) noexcept { [[nodiscard]] static auto calculateHalfCarryAdd(const uint8_t before, const uint8_t value, const int calculation) noexcept {
static std::array<int, 8> halfCarryTableAdd = { { 0, 0, 1, 0, 1, 0, 1, 1} }; static std::array<int, 8> halfCarryTableAdd = { { 0, 0, 1, 0, 1, 0, 1, 1} };
const auto index = buildHalfCarryIndex(before, value, calculation); const auto index = buildHalfCarryIndex(before, value, calculation);
return halfCarryTableAdd.at(index & Mask3); return halfCarryTableAdd[index & Mask3];
} }
[[nodiscard]] static auto calculateHalfCarrySub(const uint8_t before, const uint8_t value, const int calculation) noexcept { [[nodiscard]] static auto calculateHalfCarrySub(const uint8_t before, const uint8_t value, const int calculation) noexcept {
std::array<int, 8> halfCarryTableSub = { { 0, 1, 1, 1, 0, 0, 0, 1 } }; std::array<int, 8> halfCarryTableSub = { { 0, 1, 1, 1, 0, 0, 0, 1 } };
const auto index = buildHalfCarryIndex(before, value, calculation); const auto index = buildHalfCarryIndex(before, value, calculation);
return halfCarryTableSub.at(index & Mask3); return halfCarryTableSub[index & Mask3];
} }
void handleRESET() override; void handleRESET() override;

View File

@ -8,7 +8,7 @@ namespace EightBit {
class LittleEndianProcessor : public Processor { class LittleEndianProcessor : public Processor {
public: public:
virtual ~LittleEndianProcessor() = default; ~LittleEndianProcessor() = default;
register16_t peekWord(register16_t address) final; register16_t peekWord(register16_t address) final;
void pokeWord(register16_t address, register16_t value) final; void pokeWord(register16_t address, register16_t value) final;

View File

@ -15,7 +15,7 @@ namespace EightBit {
// x: sign extend this b-bit number to r // x: sign extend this b-bit number to r
[[nodiscard]] static int8_t signExtend(int b, uint8_t x) noexcept; [[nodiscard]] static int8_t signExtend(int b, uint8_t x) noexcept;
virtual ~Processor() = default; ~Processor() = default;
[[nodiscard]] auto& PC() noexcept { return m_pc; } [[nodiscard]] auto& PC() noexcept { return m_pc; }