diff --git a/test/cfg/emscripten.cpp b/test/cfg/emscripten.cpp index 9f4bf9a58e6..52f7e53f7fd 100644 --- a/test/cfg/emscripten.cpp +++ b/test/cfg/emscripten.cpp @@ -13,14 +13,14 @@ void em_asm_test() { // inline some JavaScript - EM_ASM(alert('hello');); - MAIN_THREAD_EM_ASM(alert('hello main thread');); + EM_ASM(alert('hello'); ); + MAIN_THREAD_EM_ASM(alert('hello main thread'); ); // pass parameters to JavaScript EM_ASM( - { - console.log('I received: ' + [$0, $1]); - }, + { + console.log('I received: ' + [$0, $1]); + }, 100, 35.5); // pass a string to JavaScript @@ -73,16 +73,16 @@ void main_thread_em_asm_ptr_test() // cppcheck-suppress leakReturnValNotUsed MAIN_THREAD_EM_ASM_PTR( return stringToNewUTF8("Hello"); - ); + ); } EM_JS(void, two_alerts, (), { - alert('hai'); - alert('bai'); - }); + alert('hai'); + alert('bai'); +}); EM_JS(void, take_args, (int x, float y), { console.log('I received: ' + [x, y]); - }); +}); void em_js_test() { diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 8ee2c5d7fe1..799c267a50c 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -5179,7 +5179,7 @@ struct S_std_as_const { // #12974 std::list l; }; -void containerOutOfBounds_std_string(std::string &var) { // #11403 +void containerOutOfBounds_std_string(std::string &var) { // #11403 std::string s0{"x"}; // cppcheck-suppress containerOutOfBounds var+= s0[2]; diff --git a/test/cli/shared-items-project/Main/MainFile.cpp b/test/cli/shared-items-project/Main/MainFile.cpp index 545a063c426..bbfcb9626b7 100644 --- a/test/cli/shared-items-project/Main/MainFile.cpp +++ b/test/cli/shared-items-project/Main/MainFile.cpp @@ -2,6 +2,6 @@ int main(void) { - Shared::TestClass test{}; - return 0; + Shared::TestClass test{}; + return 0; } \ No newline at end of file diff --git a/test/cli/shared-items-project/Shared/TestClass.cpp b/test/cli/shared-items-project/Shared/TestClass.cpp index 89683fe6689..4fa992fce1b 100644 --- a/test/cli/shared-items-project/Shared/TestClass.cpp +++ b/test/cli/shared-items-project/Shared/TestClass.cpp @@ -2,10 +2,8 @@ using namespace Shared; -TestClass::TestClass() -{ -} +TestClass::TestClass() +{} -TestClass::~TestClass() -{ -} +TestClass::~TestClass() +{} diff --git a/test/cli/shared-items-project/Shared/TestClass.h b/test/cli/shared-items-project/Shared/TestClass.h index da8799606a0..7fbdb22dcde 100644 --- a/test/cli/shared-items-project/Shared/TestClass.h +++ b/test/cli/shared-items-project/Shared/TestClass.h @@ -4,7 +4,7 @@ namespace Shared { class TestClass { - public: + public: explicit TestClass(); virtual ~TestClass(); }; diff --git a/test/cli/whole-program/odr1.cpp b/test/cli/whole-program/odr1.cpp index ed11b42f9b3..11f3f53b8d8 100644 --- a/test/cli/whole-program/odr1.cpp +++ b/test/cli/whole-program/odr1.cpp @@ -6,7 +6,9 @@ class C : public Base { public: - void f() override { std::cout << "1"; } + void f() override { + std::cout << "1"; + } }; Base *c1_create() diff --git a/test/cli/whole-program/odr2.cpp b/test/cli/whole-program/odr2.cpp index 6a08a33351d..849418af508 100644 --- a/test/cli/whole-program/odr2.cpp +++ b/test/cli/whole-program/odr2.cpp @@ -5,7 +5,9 @@ class C : public Base { public: - void f() override { std::cout << "2"; } + void f() override { + std::cout << "2"; + } }; Base *c2_create() diff --git a/tools/defines/float.c b/tools/defines/float.c index 1d53f818510..31887414740 100644 --- a/tools/defines/float.c +++ b/tools/defines/float.c @@ -2,7 +2,7 @@ #include "stdio.h" #define PRINT_DEF(d, f) \ - fprintf(stdout, ";"#d"=%"#f, d) + fprintf(stdout, ";"#d "=%"#f, d) int main(void) { diff --git a/tools/defines/limits.c b/tools/defines/limits.c index 8f2d9c90a7d..0407aefac22 100644 --- a/tools/defines/limits.c +++ b/tools/defines/limits.c @@ -2,7 +2,7 @@ #include "stdio.h" #define PRINT_DEF(d, f) \ - fprintf(stdout, ";"#d"=%"#f, d) + fprintf(stdout, ";"#d "=%"#f, d) int main(void) { diff --git a/tools/defines/stdint.c b/tools/defines/stdint.c index bd899140de2..72fc6c6ead8 100644 --- a/tools/defines/stdint.c +++ b/tools/defines/stdint.c @@ -2,7 +2,7 @@ #include "stdio.h" #define PRINT_DEF(d, f) \ - fprintf(stdout, ";"#d"=%"#f, d) + fprintf(stdout, ";"#d "=%"#f, d) #define PRINT_DEF_N(d1, d2, f) \ do { \ @@ -40,5 +40,5 @@ int main(void) PRINT_DEF(WINT_MIN, d); PRINT_DEF(WINT_MAX, d); - return 0; + return 0; }