-
Notifications
You must be signed in to change notification settings - Fork 938
[Clean-up] Clang-format some existing files #3179
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
3ec466f
to
74e10e3
Compare
74e10e3
to
d332bb8
Compare
struct MinMaxReducerCompare { | ||
MinMaxReducerCompare() = delete; | ||
MinMaxReducerCompare(MinMaxEvalType evalType) : type_(evalType){}; | ||
MinMaxReducerCompare(MinMaxEvalType evalType) : type_(evalType) {}; |
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 believe the Google style rules say that a space is not allowed between the parenthesis and the brace, and my IDE with it's auto formatting agrees. But the Pigweed style checker says that this is wrong and spacing must be there. I am much interested in your final resolution of this. This difference has only appeared in the last year or so.
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'm sticking with the current format because it follows the rule "There should be a space between the close parenthesis and the open curly brace." (link
Given that the Pigweed style is implemented by clang-format (following Google conventions), the practical decision is to treat the tool's output as the final authority, overriding minor written style guide disagreements.
BUG=SImple-clean-up