mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:13:34 +08:00
CI: enable clang-tidy cppcoreguidelines-virtual-class-destructor (#26559)
* CI: enable clang-tidy cppcoreguidelines-virtual-class-destructor Signed-off-by: kuralme <kuralme@protonmail.com> * format fix Signed-off-by: kuralme <kuralme@protonmail.com> --------- Signed-off-by: kuralme <kuralme@protonmail.com>
This commit is contained in:
@@ -46,6 +46,8 @@ public:
|
||||
|
||||
bool Scheduled() { return !hrt_called(&_call); }
|
||||
|
||||
virtual ~ScheduledWorkItem();
|
||||
|
||||
/**
|
||||
* Schedule next run with a delay in microseconds.
|
||||
*
|
||||
@@ -76,7 +78,6 @@ public:
|
||||
protected:
|
||||
|
||||
ScheduledWorkItem(const char *name, const wq_config_t &config) : WorkItem(name, config) {}
|
||||
virtual ~ScheduledWorkItem() override;
|
||||
|
||||
virtual void print_run_status() override;
|
||||
|
||||
|
||||
@@ -83,13 +83,14 @@ public:
|
||||
|
||||
const char *ItemName() const { return _item_name; }
|
||||
|
||||
virtual ~WorkItem();
|
||||
|
||||
protected:
|
||||
|
||||
explicit WorkItem(const char *name, const wq_config_t &config);
|
||||
|
||||
explicit WorkItem(const char *name, const WorkItem &work_item);
|
||||
|
||||
virtual ~WorkItem();
|
||||
|
||||
/**
|
||||
* Remove work item from the runnable queue, if it's there
|
||||
|
||||
Reference in New Issue
Block a user