-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[Internal] clang-format the whole repo #25955
Comments
IMO that's way too much churn and will cause issues with backports and blaming. |
Actually prettier or eslint whole repo is common thing, we have git history for blaming part.
copyed from #16115 (comment) I want to make cpp format easier in the long term. |
I agree with @richardlau , that was the reason I dropped #16122 in favor of #21997 which used the git-clang-format script to only format diffs instead of the whole repo. Unlike React or Babel we have a LTS support scheme and backport as much as possible, which makes this kind of formatting less feasible. (The git-clang-format approach was borrowed from electron under the advice from @codebytere)
You can use |
@joyeecheung Thanks for the info. |
This is a sub task of #25908.
The whole repo means the
src
andtest
folder.What I want is that let's take more time focus on code itself instead of chores like formatting.
Thought
Do we need to change current
.clang-format
rules.You can check current format change : gengjiawen@425befd
Many prs may need rebase. So merge large cpp related prs first ?
cc @joyeecheung @addaleax @refack @bnoordhuis @jasnell @cjihrig
The text was updated successfully, but these errors were encountered: