Open JVApen opened 1 year ago
I tried this with 16-rc2, although, I don't have any indications that this is a regression.
@llvm/issue-subscribers-clang-format
Just want to add that the issue also happens with a literal string suffix, e.g.: auto str = "some string"_suffix;
Given the following code and a Clang-Format file that has a maximum line length:
Clang-Format does not want to split the raw string literal into smaller chunks. Expected:
The actual string in our code does contain several spaces on which splitting could be possible.
I've tried this with a string containing 5000 characters, even put
PenaltyBreakString: 0
in the config file. Tried updatingRawStringFormats
to containraw
orraw(
and several other variations, I can't seem to get Clang-Format to split a raw string literal into parts.Removing the
R
and making this a regular string does cause it to jump onto multiple lines.