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
The coding standards doc states to format lambdas like blocks as long as they're the last arg:
http://www.llvm.org/docs/CodingStandards.html#format-lambdas-like-blocks-of-code
However, clang-format only seems to do that if the opening brace of the lambda is on the same line as the start of the function call:
some_call_to_a_function_with_a_long_name(arg1, arg2, [](int x) { int y = x * x; return y; });
vs
some_call_to_a_function_with_a_long_name(long_arg1, really_long_arg2, [](int x) { int y = x * x; return y; });
The latter should really be:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Extended Description
The coding standards doc states to format lambdas like blocks as long as they're the last arg:
http://www.llvm.org/docs/CodingStandards.html#format-lambdas-like-blocks-of-code
However, clang-format only seems to do that if the opening brace of the lambda is on the same line as the start of the function call:
some_call_to_a_function_with_a_long_name(arg1, arg2, [](int x) {
int y = x * x;
return y;
});
vs
some_call_to_a_function_with_a_long_name(long_arg1, really_long_arg2,
[](int x) {
int y = x * x;
return y;
});
The latter should really be:
some_call_to_a_function_with_a_long_name(long_arg1, really_long_arg2,
[](int x) {
int y = x * x;
return y;
});
The text was updated successfully, but these errors were encountered: