refactor: lint

This commit is contained in:
Alex
2022-04-06 08:37:19 +02:00
parent 168ba2ca5b
commit f2fcadbf62
99 changed files with 3173 additions and 3512 deletions

View File

@ -20,12 +20,12 @@ using remove_cvref_t = typename std::remove_cv<typename std::remove_reference<T>
*/
TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal basic functionality", "[signal][thread][util]") {
const int NUM_EVENTS = 100;
int count = 0;
int last_value = 0;
int count = 0;
int last_value = 0;
SafeSignal<int, std::string> test_signal;
const auto main_tid = std::this_thread::get_id();
const auto main_tid = std::this_thread::get_id();
std::thread producer;
// timeout the test in 500ms
@ -63,7 +63,7 @@ TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal basic functionality", "[signal][t
template <typename T>
struct TestObject {
T value;
T value;
unsigned copied = 0;
unsigned moved = 0;
@ -93,7 +93,7 @@ struct TestObject {
}
bool operator==(T other) const { return value == other; }
operator T() const { return value; }
operator T() const { return value; }
};
/*
@ -101,7 +101,7 @@ struct TestObject {
*/
TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal copy/move counter", "[signal][thread][util]") {
const int NUM_EVENTS = 3;
int count = 0;
int count = 0;
SafeSignal<TestObject<int>> test_signal;

View File

@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {
Glib::init();
session.applyCommandLine(argc, argv);
const auto logger = spdlog::default_logger();
const auto logger = spdlog::default_logger();
const auto& reporter_name = session.config().getReporterName();
if (reporter_name == "tap") {
spdlog::set_pattern("# [%l] %v");