Skip to content

Commit 3b338fe

Browse files
authored
Formatting: Execute runformat (#6741)
1 parent ecb436a commit 3b338fe

10 files changed

Lines changed: 28 additions & 26 deletions

File tree

test/cfg/emscripten.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
void em_asm_test()
1414
{
1515
// inline some JavaScript
16-
EM_ASM(alert('hello'););
17-
MAIN_THREAD_EM_ASM(alert('hello main thread'););
16+
EM_ASM(alert('hello'); );
17+
MAIN_THREAD_EM_ASM(alert('hello main thread'); );
1818

1919
// pass parameters to JavaScript
2020
EM_ASM(
21-
{
22-
console.log('I received: ' + [$0, $1]);
23-
},
21+
{
22+
console.log('I received: ' + [$0, $1]);
23+
},
2424
100, 35.5);
2525

2626
// pass a string to JavaScript
@@ -73,16 +73,16 @@ void main_thread_em_asm_ptr_test()
7373
// cppcheck-suppress leakReturnValNotUsed
7474
MAIN_THREAD_EM_ASM_PTR(
7575
return stringToNewUTF8("Hello");
76-
);
76+
);
7777
}
7878

7979
EM_JS(void, two_alerts, (), {
80-
alert('hai');
81-
alert('bai');
82-
});
80+
alert('hai');
81+
alert('bai');
82+
});
8383
EM_JS(void, take_args, (int x, float y), {
8484
console.log('I received: ' + [x, y]);
85-
});
85+
});
8686

8787
void em_js_test()
8888
{

test/cfg/std.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5179,7 +5179,7 @@ struct S_std_as_const { // #12974
51795179
std::list<int> l;
51805180
};
51815181

5182-
void containerOutOfBounds_std_string(std::string &var) { // #11403
5182+
void containerOutOfBounds_std_string(std::string &var) { // #11403
51835183
std::string s0{"x"};
51845184
// cppcheck-suppress containerOutOfBounds
51855185
var+= s0[2];

test/cli/shared-items-project/Main/MainFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
int main(void)
44
{
5-
Shared::TestClass test{};
6-
return 0;
5+
Shared::TestClass test{};
6+
return 0;
77
}

test/cli/shared-items-project/Shared/TestClass.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
using namespace Shared;
44

5-
TestClass::TestClass()
6-
{
7-
}
5+
TestClass::TestClass()
6+
{}
87

9-
TestClass::~TestClass()
10-
{
11-
}
8+
TestClass::~TestClass()
9+
{}

test/cli/shared-items-project/Shared/TestClass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Shared
44
{
55
class TestClass
66
{
7-
public:
7+
public:
88
explicit TestClass();
99
virtual ~TestClass();
1010
};

test/cli/whole-program/odr1.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
class C : public Base
77
{
88
public:
9-
void f() override { std::cout << "1"; }
9+
void f() override {
10+
std::cout << "1";
11+
}
1012
};
1113

1214
Base *c1_create()

test/cli/whole-program/odr2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
class C : public Base
66
{
77
public:
8-
void f() override { std::cout << "2"; }
8+
void f() override {
9+
std::cout << "2";
10+
}
911
};
1012

1113
Base *c2_create()

tools/defines/float.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "stdio.h"
33

44
#define PRINT_DEF(d, f) \
5-
fprintf(stdout, ";"#d"=%"#f, d)
5+
fprintf(stdout, ";"#d "=%"#f, d)
66

77
int main(void)
88
{

tools/defines/limits.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "stdio.h"
33

44
#define PRINT_DEF(d, f) \
5-
fprintf(stdout, ";"#d"=%"#f, d)
5+
fprintf(stdout, ";"#d "=%"#f, d)
66

77
int main(void)
88
{

tools/defines/stdint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "stdio.h"
33

44
#define PRINT_DEF(d, f) \
5-
fprintf(stdout, ";"#d"=%"#f, d)
5+
fprintf(stdout, ";"#d "=%"#f, d)
66

77
#define PRINT_DEF_N(d1, d2, f) \
88
do { \
@@ -40,5 +40,5 @@ int main(void)
4040
PRINT_DEF(WINT_MIN, d);
4141
PRINT_DEF(WINT_MAX, d);
4242

43-
return 0;
43+
return 0;
4444
}

0 commit comments

Comments
 (0)