CLion: multiline array initializer into single line
已完成
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?
请先登录再写评论。
I figured it out - it was option (uncheck to disable multiple lines):
Align initializer list values in columns