-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[clang-format] Formatting chained stream output (bitwise left shift) operators << #93034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-clang-format Author: None (Alexolut)
In clang-format 18.1.0-18.1.4 the following code doesn't changed after formatting based on Google-style:
In other words as long as we fit in line length, all is places in one line. But in 18.1.5 and 18.1.6 every operand is placed on the different line despite the allowed length of line like this:
Which behavior is considered correct? Is there a way to configure this behavior by some format option? |
Please see the release notes of 18.1.5.
See #92214, which addresses the issues post 18.1.6. |
Am I understand you correctly, that for versions newer than 18.1.6 expected behavior will be "Leave as is" for both code excerpts that I mentioned at the top of the thread?
Will something like this:
be formatted in this way?
|
@Alexolut exactly! |
Duplicate of #44363. |
In clang-format 18.1.0-18.1.4 the following code doesn't changed after formatting based on Google-style:
In other words as long as we fit in line length, all is places in one line.
But in 18.1.5 and 18.1.6 every operand is placed on the different line despite the allowed length of line like this:
Which behavior is considered correct? Is there a way to configure this behavior by some format option?
The text was updated successfully, but these errors were encountered: