-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang-format] AlignAfterOpenBracket: BlockIndent: weird close-bracket when ')' or qualifiers exceeds ColumnLimit #55473
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
Labels
Comments
@llvm/issue-subscribers-clang-format |
Also reported as #54808. |
Look at this: class Test {
virtual void
mergeOfflineRegions(const std::string &sideDatabasePath, std::function<void(expected<OfflineRegions, std::exception_ptr>)>);
}; It doesn't even take into account the ColumnLimit anymore!
You can try setting a lower |
A duplicate of: #55731 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I'm using clang-format 14 with option
AlignAfterOpenBracket: BlockIndent
and I found strange сlosing brackets behavior when close bracket or following qualifiers exceedColumnLimit
. This case appears whenreturn-type
+function-name
+arguments
can place on one line, but) + qualifiers
cannot.Here is an example of .clang-format file:
Here is an example when
AlignAfterOpenBracket: BlockIndent
works fine:Everything is just as I expected.
But if I increase function name length or add some function attributes (e.g. MACRO), then I have weird behavior: only
) + qualifiers
places on the next line.Example:
Expected:
The text was updated successfully, but these errors were encountered: