Hi,
how can I configure the formatting of streaming operators (<<)? I’ve tried BreakBeforeBinaryOperators and AlignOperands but they don’t have any effect.
Example: clang-format aligns all <<:
my_output_stream_with_a_very_long_name << "fooooooooooooooooooooooooooooooooooooooo"
<< "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar"
<< "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzz";
Normally for streams like cout this is ok. But with streams with a long name it wastes a lot of horizontal space.
I would like something like that:
my_output_stream_with_a_very_long_name
<< "fooooooooooooooooooooooooooooooooooooooo"
<< "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar"
<< "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzz";
Is this possible?