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 ...
`s. However, people should be more careful when editing other peoples' content. Stuff like this isn't typical around here. Apologies. – Dan Moulding Oct 31 '12 at 15:43