forked from Archive/PX4-Autopilot
clang-tidy: partially fix hicpp-use-override
This commit is contained in:
parent
bfd44afef8
commit
c284198bec
|
@ -103,7 +103,7 @@ public:
|
|||
/**
|
||||
* Destructor, also kills task.
|
||||
*/
|
||||
~CameraTrigger();
|
||||
~CameraTrigger() override;
|
||||
|
||||
/**
|
||||
* Run intervalometer update
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
|
||||
GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interface, bool fake_gps, bool enable_sat_info,
|
||||
Instance instance, unsigned configured_baudrate);
|
||||
virtual ~GPS();
|
||||
~GPS() override;
|
||||
|
||||
/** @see ModuleBase */
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
|
|
@ -106,12 +106,12 @@ public:
|
|||
_is_open_for_write(false),
|
||||
_write_offset(0) {}
|
||||
|
||||
~CDevNode() = default;
|
||||
~CDevNode() override = default;
|
||||
|
||||
virtual int open(cdev::file_t *handlep);
|
||||
virtual int close(cdev::file_t *handlep);
|
||||
virtual ssize_t write(cdev::file_t *handlep, const char *buffer, size_t buflen);
|
||||
virtual ssize_t read(cdev::file_t *handlep, char *buffer, size_t buflen);
|
||||
int open(cdev::file_t *handlep) override;
|
||||
int close(cdev::file_t *handlep) override;
|
||||
ssize_t write(cdev::file_t *handlep, const char *buffer, size_t buflen) override;
|
||||
ssize_t read(cdev::file_t *handlep, char *buffer, size_t buflen) override;
|
||||
private:
|
||||
bool _is_open_for_write;
|
||||
size_t _write_offset;
|
||||
|
|
|
@ -60,10 +60,10 @@ class LED : cdev::CDev
|
|||
{
|
||||
public:
|
||||
LED();
|
||||
virtual ~LED() = default;
|
||||
~LED() override = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int ioctl(cdev::file_t *filp, int cmd, unsigned long arg);
|
||||
int init() override;
|
||||
int ioctl(cdev::file_t *filp, int cmd, unsigned long arg) override;
|
||||
};
|
||||
|
||||
LED::LED() : CDev(LED0_DEVICE_PATH)
|
||||
|
|
|
@ -26,7 +26,7 @@ extern "C" __EXPORT int rc_tests_main(int argc, char *argv[]);
|
|||
class RCTest : public UnitTest
|
||||
{
|
||||
public:
|
||||
virtual bool run_tests();
|
||||
bool run_tests() override;
|
||||
|
||||
private:
|
||||
bool crsfTest();
|
||||
|
|
|
@ -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() :
|
||||
|
|
Loading…
Reference in New Issue