Skip to content

Commit b8dc081

Browse files
committed
clang-format adaptions
1 parent cfaf10e commit b8dc081

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

β€Ž_test/testdata/triceCheck.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -2585,23 +2585,23 @@ static int64_t DoubleToInt64(double f) {
25852585
#endif
25862586

25872587
//! SCOPY is a helper macro for struct serialization.
2588-
#define SCOPY(element) \
2589-
do { \
2590-
char* n = #element; \
2591-
int size = sizeof(src->element); \
2592-
memcpy(p, &(src->element), size); \
2593-
p += size; \
2588+
#define SCOPY(element) \
2589+
do { \
2590+
char* n = #element; \
2591+
int size = sizeof(src->element); \
2592+
memcpy(p, &(src->element), size); \
2593+
p += size; \
25942594
TRICE_S(ID(0), "rd:sizeof(%8s)", n); \
25952595
TRICE(ID(0), " = %d\n", size); \
25962596
} while (0);
25972597

25982598
//! DCOPY is a helper macro for struct deserialization.
2599-
#define DCOPY(element) \
2600-
do { \
2601-
char* n = #element; \
2602-
int size = sizeof(dst->element); \
2603-
memcpy(&(dst->element), p, size); \
2604-
p += size; \
2599+
#define DCOPY(element) \
2600+
do { \
2601+
char* n = #element; \
2602+
int size = sizeof(dst->element); \
2603+
memcpy(&(dst->element), p, size); \
2604+
p += size; \
26052605
TRICE_S(ID(0), "rd:sizeof(%8s)", n); \
26062606
TRICE(ID(0), " = %d\n", size); \
26072607
} while (0);

β€Žclang-format.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
clang-format -i \
1+
/C/bin/clang+llvm-18.1.8-x86_64-pc-windows-msvc/bin/clang-format.exe -i \
22
./src/*.c \
33
./src/*.h \
44
./_test/*/*.c \

β€Žexamples/exampleData/triceExamples.c

+16-16
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ void TriceHeadLine(char* name) {
1414

1515
//! SomeExampleTrices generates a few Trice example logs and a burst of Trices.
1616
void SomeExampleTrices(int burstCount) {
17-
//TRICE32_0(ID(0), "att:🐁 Speedy Gonzales A 32-bit time stamp\n");
18-
//TRICE32_0(ID(0), "att:🐁 Speedy Gonzales B 32-bit time stamp\n");
19-
//TRICE32_0(ID(0), "att:🐁 Speedy Gonzales C 32-bit time stamp\n");
20-
//TRICE32_0(ID(0), "att:🐁 Speedy Gonzales D 32-bit time stamp\n");
21-
//TRICE32_0(Id(0), "att:🐁 Speedy Gonzales E 16-bit time stamp\n");
22-
//TRICE32_0(Id(0), "att:🐁 Speedy Gonzales F 16-bit time stamp\n");
23-
//TRICE32_0(Id(0), "att:🐁 Speedy Gonzales G 16-bit time stamp\n");
24-
//TRICE32_0(Id(0), "att:🐁 Speedy Gonzales H 16-bit time stamp\n");
25-
//TRICE32_0(id(0), "att:🐁 Speedy Gonzales I without time stamp\n");
26-
//TRICE32_0(id(0), "att:🐁 Speedy Gonzales J without time stamp\n");
27-
//TRICE32_0(id(0), "att:🐁 Speedy Gonzales K without time stamp\n");
28-
//TRICE32_0(id(0), "att:🐁 Speedy Gonzales L without time stamp\n");
17+
// TRICE32_0(ID(0), "att:🐁 Speedy Gonzales A 32-bit time stamp\n");
18+
// TRICE32_0(ID(0), "att:🐁 Speedy Gonzales B 32-bit time stamp\n");
19+
// TRICE32_0(ID(0), "att:🐁 Speedy Gonzales C 32-bit time stamp\n");
20+
// TRICE32_0(ID(0), "att:🐁 Speedy Gonzales D 32-bit time stamp\n");
21+
// TRICE32_0(Id(0), "att:🐁 Speedy Gonzales E 16-bit time stamp\n");
22+
// TRICE32_0(Id(0), "att:🐁 Speedy Gonzales F 16-bit time stamp\n");
23+
// TRICE32_0(Id(0), "att:🐁 Speedy Gonzales G 16-bit time stamp\n");
24+
// TRICE32_0(Id(0), "att:🐁 Speedy Gonzales H 16-bit time stamp\n");
25+
// TRICE32_0(id(0), "att:🐁 Speedy Gonzales I without time stamp\n");
26+
// TRICE32_0(id(0), "att:🐁 Speedy Gonzales J without time stamp\n");
27+
// TRICE32_0(id(0), "att:🐁 Speedy Gonzales K without time stamp\n");
28+
// TRICE32_0(id(0), "att:🐁 Speedy Gonzales L without time stamp\n");
2929
TRice("att:🐁 Speedy Gonzales a 32-bit time stamp\n");
3030
TRice("att:🐁 Speedy Gonzales b 32-bit time stamp\n");
3131
TRice("att:🐁 Speedy Gonzales c 32-bit time stamp\n");
@@ -34,10 +34,10 @@ void SomeExampleTrices(int burstCount) {
3434
Trice("att:🐁 Speedy Gonzales f 16-bit time stamp\n");
3535
Trice("att:🐁 Speedy Gonzales g 16-bit time stamp\n");
3636
Trice("att:🐁 Speedy Gonzales h 16-bit time stamp\n");
37-
//trice("att:🐁 Speedy Gonzales i without time stamp\n");
38-
//trice("att:🐁 Speedy Gonzales j without time stamp\n");
39-
//trice("att:🐁 Speedy Gonzales k without time stamp\n");
40-
//trice("att:🐁 Speedy Gonzales l without time stamp\n");
37+
// trice("att:🐁 Speedy Gonzales i without time stamp\n");
38+
// trice("att:🐁 Speedy Gonzales j without time stamp\n");
39+
// trice("att:🐁 Speedy Gonzales k without time stamp\n");
40+
// trice("att:🐁 Speedy Gonzales l without time stamp\n");
4141
char* aString = "2.71828182845904523536";
4242
TriceS("rd:%s <- float number as string\n", aString);
4343
Trice64("msg:%.20f (double with more ciphers than precision)\n", aDouble(2.71828182845904523536));

0 commit comments

Comments
Β (0)