clang-tidy modernize-redundant-void-arg

This commit is contained in:
Daniel Agar
2017-02-01 22:15:50 -05:00
parent e927f3e040
commit 6631e72d6f
33 changed files with 126 additions and 124 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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;
+3 -3
View File
@@ -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];
+1 -1
View File
@@ -115,7 +115,7 @@ struct ParameterHandles {
/* functions */
static void usage(void);
static void usage();
static void update_params(ParameterHandles &param_handles, Parameters &params, bool &got_changes);
static bool get_params(ParameterHandles &param_handles, Parameters &params);