Skip to content

Commit 4bc4bc5

Browse files
committed
Add // clang-format off in examples around TRACE_BLOCK
1 parent 5326996 commit 4bc4bc5

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

examples/example_tut03.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,12 @@ void initialize_vec(double *arr, const size_t n)
5555
THROW(CTB_NULL_POINTER_ERROR, "Received null pointer.");
5656
}
5757

58-
TRACE_BLOCK(for (int i = 0; i < n; i++) { arr[i] = i; });
58+
// clang-format off
59+
TRACE_BLOCK(
60+
for (int i = 0; i < n; i++)
61+
{
62+
arr[i] = i;
63+
}
64+
);
65+
// clang-format on
5966
}

examples/example_tut04.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ void initialize_vec(double *arr, const size_t n)
5858
THROW(CTB_NULL_POINTER_ERROR, "Received null pointer.");
5959
}
6060

61-
TRACE_BLOCK(for (int i = 0; i < n; i++) { arr[i] = i; });
61+
// clang-format off
62+
TRACE_BLOCK(
63+
for (int i = 0; i < n; i++)
64+
{
65+
arr[i] = i;
66+
}
67+
);
68+
// clang-format on
6269
}
6370

6471
void divide_vec(double *arr, const size_t n, const double denominator)

0 commit comments

Comments
 (0)