mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 05:20:34 +08:00
clang-tidy: partially fix hicpp-use-override
This commit is contained in:
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
AirspeedModule();
|
||||
|
||||
~AirspeedModule();
|
||||
~AirspeedModule() override;
|
||||
|
||||
/** @see ModuleBase */
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
||||
@@ -47,9 +47,9 @@ class StateMachineHelperTest : public UnitTest
|
||||
{
|
||||
public:
|
||||
StateMachineHelperTest() = default;
|
||||
virtual ~StateMachineHelperTest() = default;
|
||||
~StateMachineHelperTest() override = default;
|
||||
|
||||
virtual bool run_tests();
|
||||
bool run_tests() override;
|
||||
|
||||
private:
|
||||
bool armingStateTransitionTest();
|
||||
|
||||
@@ -71,7 +71,7 @@ class LoadMon : public ModuleBase<LoadMon>, public ModuleParams, public px4::Sch
|
||||
{
|
||||
public:
|
||||
LoadMon();
|
||||
~LoadMon();
|
||||
~LoadMon() override;
|
||||
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ extern "C" __EXPORT int local_position_estimator_main(int argc, char *argv[]);
|
||||
class LocalPositionEstimatorModule : public ModuleBase<LocalPositionEstimatorModule>
|
||||
{
|
||||
public:
|
||||
virtual ~LocalPositionEstimatorModule() = default;
|
||||
~LocalPositionEstimatorModule() override = default;
|
||||
|
||||
/** @see ModuleBase */
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -85,7 +85,7 @@ class MulticopterPositionControl : public ModuleBase<MulticopterPositionControl>
|
||||
public:
|
||||
MulticopterPositionControl();
|
||||
|
||||
virtual ~MulticopterPositionControl() override;
|
||||
~MulticopterPositionControl() override;
|
||||
|
||||
/** @see ModuleBase */
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
||||
@@ -87,11 +87,11 @@ class GPSSIM : public VirtDevObj
|
||||
public:
|
||||
GPSSIM(bool fake_gps, bool enable_sat_info,
|
||||
int fix_type, int num_sat, int noise_multiplier);
|
||||
virtual ~GPSSIM();
|
||||
~GPSSIM() override;
|
||||
|
||||
virtual int init();
|
||||
int init() override;
|
||||
|
||||
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
|
||||
int devIOCTL(unsigned long cmd, unsigned long arg) override;
|
||||
|
||||
void set(int fix_type, int num_sat, int noise_multiplier);
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void print_info();
|
||||
|
||||
protected:
|
||||
virtual void _measure() {}
|
||||
void _measure() override {}
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -63,13 +63,13 @@ class LED : public VirtDevObj
|
||||
{
|
||||
public:
|
||||
LED();
|
||||
virtual ~LED() = default;
|
||||
~LED() override = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
|
||||
int init() override;
|
||||
int devIOCTL(unsigned long cmd, unsigned long arg) override;
|
||||
|
||||
protected:
|
||||
virtual void _measure() {}
|
||||
void _measure() override {}
|
||||
};
|
||||
|
||||
LED::LED() :
|
||||
|
||||
Reference in New Issue
Block a user