I have code that looks like this:
EXPECT_EQ(
subsystem->previousTouchscreenState,
expectedTouchscreenState
);
When I run clang-format, it reformats the snippet to look like this:
EXPECT_EQ(
subsystem->previousTouchscreenState,
expectedTouchscreenState );
This is quite counterintuitive; I'd like my multi-line function invocations (although EXPECT_EQ is a macro in this case) to have the closing round bracket on its own line, indented to the level of the name of the function, as it is in the first snippet.
How do I accomplish this with clang-format?
Many thanks.