Skip to content

Format affected files with clang-format - #57902

Open
matinzd wants to merge 3 commits into
react:mainfrom
matinzd:chore-fix-clang-format
Open

Format affected files with clang-format#57902
matinzd wants to merge 3 commits into
react:mainfrom
matinzd:chore-fix-clang-format

Conversation

@matinzd

@matinzd matinzd commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary:

Not sure if this is the best approach, but I think we should either update yarn format to use only Prettier, or fix non formatted files.

If we decide to proceed with fixing clang-format, we can avoid the impact on git blame history by using .git-blame-ignore-revs. However merge conflicts can happen 👀 . After this PR is merged, we can add the SHA of the squash merge commit to that file so these formatting-only changes are excluded from git blame.

Otherwise feel free close this PR and remove clang-format from format script.

Changelog:

[Internal] [Changed] - Apply clang-format to consistently format the affected files.

Test Plan:

  • Ran yarn format
  • Verified that the changes are formatting-only and do not alter functionality.
  • No functional tests are required.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2026
@matinzd
matinzd marked this pull request as ready for review August 11, 2026 21:01
Comment thread .git-blame-ignore-revs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHA of squashed commit can be added here after merging.

@matinzd matinzd changed the title chore: fix clang format Format affected files with clang-format Aug 11, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant