Reputation: 3694
I'm using the Universal Indent GUI and Uncrustify for my C++ project. The code width is set to 80 characters and the code format is almost satisfying. This seems to work fine for regular code, but string literals are not split, and I would like that to happen as well.
The following example demonstrates I'm trying to achieve ...
Original:
Logger myLog;
myLog << "Long log message which exceeds line width." << std::endmsg;
Beautifed (align_left_shift=true):
Logger myLog;
myLog <<
"Long log message which exceeds line width."
<< std::endmsg;
Preferred:
Logger myLog;
myLog << "Long log message which exceeds "
"line width."
<< std::endmsg;
// or
myLog << "Long log message which exceeds "
"line width." << std::endmsg;
Is this possible with the auxiliary tools mentioned?
Thanks in advance ...
Upvotes: 4
Views: 840
Reputation: 5
myLog << "Long log message which exceeds " \
"line width."
<< std::endmsg;
Upvotes: -2