Clang doesn't like delete getting called on virtual classes without destructors.

pull/851/head
Jesse Vincent 4 years ago
parent 309ac5339c
commit 614bc41a14
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -48,6 +48,8 @@ class AssertLayerIsActive {
public:
virtual ~Action() = default;
Action(int layer_id) : layer_id_(layer_id) {}
virtual void describe(const char *add_indent = "") const override {

@ -47,6 +47,8 @@ class AssertTopActiveLayerIs {
public:
virtual ~Action() = default;
Action(int layer_id) : layer_id_(layer_id) {}
virtual void describe(const char *add_indent = "") const override {

@ -58,6 +58,7 @@ class GenerateHostEvent {
class Action : public interface::ReportAction<typename _ReportType::BaseReportType>,
public HostEventAction {
public:
virtual ~Action() = default;
virtual void describe(const char *add_indent = "") const override {
this->getSimulator()->log() << add_indent << "Generating host event";

@ -46,6 +46,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(int cycle_id) : cycle_id_(cycle_id) {}
virtual void describe(const char *add_indent = "") const override {

@ -48,6 +48,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(Simulator_::TimeType delta_t, Simulator_::TimeType start_t = 0)
: start_t_(start_t),
delta_t_(delta_t)

@ -50,6 +50,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(int n_overall_reports)
: n_overall_reports_(n_overall_reports) {}

@ -50,6 +50,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(const std::function<bool()> &func)
: func_(func)
{}

@ -50,6 +50,7 @@ namespace interface {
public:
virtual ~Action() = default;
Action(int n_reports) : n_reports_(n_reports) {}
virtual void describe(const char *add_indent = "") const override {

@ -41,6 +41,8 @@ namespace interface {
public:
virtual ~Action() = default;
virtual void describe(const char *add_indent = "") const override {
this->getSimulator()->log() << add_indent << "Report empty";
}

@ -57,6 +57,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(const _ReportType &report)
: report_(report)
{}

@ -46,6 +46,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(int report_id) : report_id_(report_id) {}
virtual void describe(const char *add_indent = "") const override {

@ -54,6 +54,8 @@ namespace interface {
using ReportAction<_ReportType>::ActionBaseType;
virtual ~Action() = default;
Action(const std::function<bool(const _ReportType&)> &func)
: func_(func)
{}

@ -41,6 +41,8 @@ namespace interface {
public:
virtual ~Action() = default;
virtual void describe(const char *add_indent = "") const override {
this->getReport().dump(*this->getSimulator(), add_indent);
}

@ -38,10 +38,12 @@ namespace interface {
///
class ReportAction_ : public Action_ {
public:
typedef Report_ ReportType;
typedef ReportAction_ ActionBaseType;
virtual ~ReportAction_() = default;
virtual uint8_t getReportTypeId() const {
return AnyTypeReportTypeId;
}

@ -41,6 +41,8 @@ namespace interface {
public:
virtual ~Action() = default;
virtual void describe(const char *add_indent = "") const override {
this->getSimulator()->log() << add_indent << "Any keycodes active";
}

@ -41,6 +41,8 @@ namespace interface {
public:
virtual ~Action() = default;
virtual void describe(const char *add_indent = "") const override {
this->getSimulator()->log() << add_indent << "Any modifiers active";
}

@ -77,6 +77,8 @@ namespace interface {
public:
virtual ~Action() = default;
Action(const std::vector<uint8_t> &keycodes,
bool exclusively = false)
: keycodes_(keycodes),

@ -78,6 +78,9 @@ namespace interface {
public:
virtual ~Action() = default;
Action(const std::vector<uint8_t> &modifiers,
bool exclusively = false)
: modifiers_(modifiers),

Loading…
Cancel
Save