Turn clang-format off for codes with multi-line commands in macros

This commit is contained in:
guangli-dai
2025-05-22 22:59:00 -07:00
committed by Qi Wang
parent 4531411abe
commit edaab8b3ad
11 changed files with 26 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
* and val3 for desired.
*/
/* clang-format off */
#define DO_TESTS(t, ta, val1, val2, val3) do { \
t val; \
t expected; \
@@ -174,6 +175,7 @@ typedef struct { \
DO_INTEGER_TESTS(t, ta, test.val1, test.val2); \
} \
} while (0)
/* clang-format on */
TEST_STRUCT(uint64_t, u64);
TEST_BEGIN(test_atomic_u64) {