-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[clang-format] AlignAfterOpenBracket AlwaysBreak does not keep to the ColumnLimit #49670
Comments
Present in clang-12 seems like a regression v8 was void bar() { size_t foo = function( size_t foo = (*(function))(Foooo, Barrrrr, Foooo, FoooooooooLooooong); size_t foo = (*(function))( |
Actually this is a version 11GA -> 12GA regression, as v11 is fine also void bar() { size_t foo = function( size_t foo = (*(function))(Foooo, Barrrrr, Foooo, FoooooooooLooooong); size_t foo = (*(function))( |
This is caused by 5426b2f https://reviews.llvm.org/D93626 |
Tentative fix https://reviews.llvm.org/D102392 |
We should try and get this put into 12.0.1 as its not the first time this bug has been seen |
Tom I've marked this as Blocks "release-12.0.1" if you want to move that to something later like 12.0.2 that is completely fine. |
Merged: e673593 |
Extended Description
With a .clang-format of
Language: Cpp
BasedOnStyle: LLVM
AlignAfterOpenBracket: AlwaysBreak
...
The follow file does not break the last line (foo4) at the ColumnLimit
void bar()
{
size_t foo1 = function(Foooo, Barrrrr, Foooo, Barrrr, FoooooooooLooooong);
}
It fees like the correct should be
void bar()
{
size_t foo = function(Foooo, Barrrrr, Foooo, Barrrr, FoooooooooLooooong);
}
The text was updated successfully, but these errors were encountered: