Skip to content

Conversation

veblush
Copy link
Collaborator

@veblush veblush commented Aug 19, 2025

  • Updated the clang-format to the latest (21)
  • Reformatted all existing files using this new clang-format

BUG=SImple-clean-up

@veblush veblush added the ci:run label Sep 20, 2025
@TFLM-bot TFLM-bot removed the ci:run label Sep 20, 2025
struct MinMaxReducerCompare {
MinMaxReducerCompare() = delete;
MinMaxReducerCompare(MinMaxEvalType evalType) : type_(evalType){};
MinMaxReducerCompare(MinMaxEvalType evalType) : type_(evalType) {};
Copy link
Member

@ddavis-2015 ddavis-2015 Sep 20, 2025

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.

Copy link
Collaborator Author

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.

@veblush veblush mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants