mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 13:33:33 +08:00
clang-tidy modernize-redundant-void-arg
This commit is contained in:
@@ -356,7 +356,7 @@ RingBuffer::get(double &val)
|
||||
}
|
||||
|
||||
unsigned
|
||||
RingBuffer::space(void)
|
||||
RingBuffer::space()
|
||||
{
|
||||
unsigned tail, head;
|
||||
|
||||
@@ -377,7 +377,7 @@ RingBuffer::space(void)
|
||||
}
|
||||
|
||||
unsigned
|
||||
RingBuffer::count(void)
|
||||
RingBuffer::count()
|
||||
{
|
||||
/*
|
||||
* Note that due to the conservative nature of space(), this may
|
||||
|
||||
@@ -160,7 +160,7 @@ private:
|
||||
/**
|
||||
* Worker task: main GPS thread that configures the GPS and parses incoming data, always running
|
||||
*/
|
||||
void task_main(void);
|
||||
void task_main();
|
||||
|
||||
/**
|
||||
* Set the baudrate of the UART to the GPS
|
||||
|
||||
@@ -158,10 +158,10 @@ private:
|
||||
static const GPIOConfig _gpio_tab[];
|
||||
static const unsigned _ngpio;
|
||||
|
||||
void gpio_reset(void);
|
||||
void gpio_reset();
|
||||
void gpio_set_function(uint32_t gpios, int function);
|
||||
void gpio_write(uint32_t gpios, int function);
|
||||
uint32_t gpio_read(void);
|
||||
uint32_t gpio_read();
|
||||
int gpio_ioctl(device::file_t *filp, int cmd, unsigned long arg);
|
||||
|
||||
};
|
||||
@@ -928,7 +928,7 @@ hil_new_mode(PortMode new_mode)
|
||||
}
|
||||
|
||||
int
|
||||
test(void)
|
||||
test()
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
||||
@@ -12,20 +12,20 @@ extern "C" __EXPORT int sf0x_tests_main(int argc, char *argv[]);
|
||||
class SF0XTest : public UnitTest
|
||||
{
|
||||
public:
|
||||
virtual bool run_tests(void);
|
||||
virtual bool run_tests();
|
||||
|
||||
private:
|
||||
bool sf0xTest();
|
||||
};
|
||||
|
||||
bool SF0XTest::run_tests(void)
|
||||
bool SF0XTest::run_tests()
|
||||
{
|
||||
ut_run_test(sf0xTest);
|
||||
|
||||
return (_tests_failed == 0);
|
||||
}
|
||||
|
||||
bool SF0XTest::sf0xTest(void)
|
||||
bool SF0XTest::sf0xTest()
|
||||
{
|
||||
const char _LINE_MAX = 20;
|
||||
//char _linebuf[_LINE_MAX];
|
||||
|
||||
@@ -115,7 +115,7 @@ struct ParameterHandles {
|
||||
|
||||
|
||||
/* functions */
|
||||
static void usage(void);
|
||||
static void usage();
|
||||
static void update_params(ParameterHandles ¶m_handles, Parameters ¶ms, bool &got_changes);
|
||||
static bool get_params(ParameterHandles ¶m_handles, Parameters ¶ms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user