-
Notifications
You must be signed in to change notification settings - Fork 883
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
include a .clang-format file to have formatting done by clang-format #1078
Comments
NOTE: I tried to apply clang-format at Apr 2022 at other project. At that time, lambda capture list and template I expect the following format: template <
typename T,
std::enable_if_t<
std::is_same_v<T, int>
>
>
foo(
T param1,
char param2,
double param3
) {
async_function(
arg1,
arg2,
[
capture1,
capture2 = std::move(outer),
capture3
]
() mutable -> std::size_t {
// body
++capture1;
}
);
} The important points I want to achieve are as follows:
Here is the setting file when I tried:
|
I also tried to have clang-format break the template parameter list into individual lines and having |
Yes, clang-format 's template parameter formatting and lambda related formatting is not enough for me. BTW, my template formatting is based on Dave Abrahams one. |
No description provided.
The text was updated successfully, but these errors were encountered: