-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Simplify formatting scripts, add a clang-tidy script, and run clang-tidy #55785
Conversation
8db4884
to
abe8877
Compare
Are you able to update this? |
abe8877
to
6d4cced
Compare
Updated. Manual changes are now at https://github.com/nathanfranke/godot/tree/clang-tidy-manual for review. |
6d4cced
to
18a3ebd
Compare
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.
Left a couple comments, but everything else seems good 👍
18a3ebd
to
710ee47
Compare
710ee47
to
8a0a3ac
Compare
@akien-mga In a future PR, should I add a switch to clang_tidy.sh to only check files changed since master/3.x, and use that switch in GitHub actions? |
Thanks!
That could be worth exploring, though in my experience clang-tidy is much more cumbersome to use and tends to create false positives/bugs, so I'm not sure I would want to make it mandatory to pass CI (since it would require that all contributors figure out how to run it locally on their changes). |
Follow-up to godotengine#55785. In `black_format.sh`, the `--exclude` switch was wrongly used. It's a misnomer that only excludes _untracked_ files, arcane pathspec patterns should instead be used to exclude _tracked_ files. Using this newfound knowledge, we can also simplify the other scripts.
No description provided.