- 
                Notifications
    You must be signed in to change notification settings 
- Fork 797
[atomics.types.float] Align parameters in function declarations #8328
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
base: main
Are you sure you want to change the base?
Conversation
Fixes NB US 197-316 (C++26 CD).
| memory_order = memory_order::seq_cst) noexcept; | ||
| @\placeholdernc{floating-point-type}@ fetch_fmaximum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) volatile noexcept; | ||
| constexpr @\placeholdernc{floating-point-type}@ fetch_fmaximum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) noexcept; | ||
| @\placeholdernc{floating-point-type}@ fetch_fminimum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) volatile noexcept; | ||
| constexpr @\placeholdernc{floating-point-type}@ fetch_fminimum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) noexcept; | ||
| memory_order = memory_order::seq_cst) noexcept; | ||
| @\placeholdernc{floating-point-type}@ | ||
| fetch_fmaximum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) volatile noexcept; | ||
| constexpr @\placeholdernc{floating-point-type}@ | ||
| fetch_fmaximum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) noexcept; | ||
| @\placeholdernc{floating-point-type}@ | ||
| fetch_fminimum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) volatile noexcept; | ||
| constexpr @\placeholdernc{floating-point-type}@ | ||
| fetch_fminimum_num(@\placeholdernc{floating-point-type}@, | ||
| memory_order = memory_order::seq_cst) noexcept; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to make some pretty drastic changes in this place unfortunately.
floating-point-type fetch_fmaximum_num(floating-point-type,
                                       memory_order = memory_order::seq_cst) volatile noexcept;... wouldn't have onto the page, by a handful of characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what we usually can and do do in these situations is to break immediately after the opening paren ( and then start parameters on the next line, indented by two. Could we do that here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried it, and I'm not able to for the next hours. Personally I don't like that style anyway.
Fixes https://github.com/cplusplus/nbballot/issues/891.
The parameter indentation in the subclause is broken in four different ways:
exchange,fetch_max, etc. it looks likeconstexprwas added without adding then necessary indentation to the second line of the declaration, resulting in misalignment.store_fmaximumand some others, an attempt was made to align the parameters, but unsuccessfully.fetch_key, there is one space too much indentation, and we forgot to useplaceholderncrather thanplaceholder.store_key, we just used two-space indentation rather than trying to align parameters at all.