We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Set: AllowShortLambdasOnASingleLine : Inline
Example (brace):
auto guard = scope_exit{[&]{exit_status = true;}};
formats to:
auto guard = scope_exit{ [&] { exit_status = true; } };
Should be:
auto guard = scope_exit{[&] { exit_status = true; }};
This works correctly with parenthesis constructor parameters.
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-clang-format
Author: Robert Andrzejuk (robert-andrzejuk)
auto guard = scope_exit{[&]{exit_status = true;}};
auto guard = scope_exit{ [&] { exit_status = true; } };
auto guard = scope_exit{[&] { exit_status = true; }};
Sorry, something went wrong.
[clang-format] Treat lambda in braced init as inline
a10ae6e
Fix llvm#125430
c41ef75
owenca
Successfully merging a pull request may close this issue.
Set: AllowShortLambdasOnASingleLine : Inline
Example (brace):
formats to:
Should be:
This works correctly with parenthesis constructor parameters.
The text was updated successfully, but these errors were encountered: