CLion: multiline array initializer into single line
Completed
I have array initialization like this:
EXPECT_EQ(0, some_func({{}, {}}));
But auto-formatting turns it into this:
EXPECT_EQ(0, some_func(
{{},
{}}
));
I cannot find an option in C++ formatting to disable breaking it down and keep it in the single line.
There seems to be no array or array initializer section in "Wrapping and Braces".
Any help?
Please sign in to leave a comment.
I figured it out - it was option (uncheck to disable multiple lines):
Align initializer list values in columns