clang-tidy: partially fix hicpp-use-override

This commit is contained in:
Daniel Agar
2019-10-28 10:50:31 -04:00
parent bfd44afef8
commit c284198bec
13 changed files with 239 additions and 239 deletions
+5 -5
View File
@@ -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;
+3 -3
View File
@@ -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)
+1 -1
View File
@@ -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();