Closed
Description
Contrary to previous versions, clang-format 18 reformats:
# define TXN_START(label, tid) \
label: \
TXN_START_NORETRY(label, tid)
# define failure_response \
failure: \
simple_response(client, code); \
break;
as:
# define TXN_START(label, tid) label : TXN_START_NORETRY(label, tid)
# define failure_response \
failure : simple_response(client, code); \
break;
I don't think it is the expected output. Previous versions of clang-format kept it unchanged. It looks like :
is now interpreted as a colon in a ternary operation instead of a colon following a label name.