Skip to content
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

Style: Apply selected clang-tidy checks #47642

Merged
merged 4 commits into from
Apr 5, 2021

Conversation

akien-mga
Copy link
Member

Applies changes from our .clang-tidy config with /usr/share/clang/run-clang-tidy.py -fix. Note that to keep them in separate commits I edited .clang-tidy to apply checks one by one (could also be done from command line but didn't bother looking it up).

Still a painful process as:

  • Can't figure out a way to make clang-tidy properly ignore thirdparty
  • It's buggy and does stuff like bool some_member = false = false; or if (cond) { { which need to be reviewed and fixed manually.

@akien-mga akien-mga added this to the 4.0 milestone Apr 5, 2021
@akien-mga akien-mga requested review from a team as code owners April 5, 2021 12:19
/** enable strict mode:
* - only accept fbx 2012, 2013 files
* - on the slightest error, give up.
*
* Basically, strict mode means that the fbx file will actually
* be validated. Strict mode is off by default. */
Copy link
Member Author

Choose a reason for hiding this comment

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

@RevoluPowered I removed mentions of default values since they're better documented by the code itself (and this one was wrong).

@akien-mga akien-mga merged commit b80b072 into godotengine:master Apr 5, 2021
@akien-mga akien-mga deleted the clang-tidy-fixes branch April 5, 2021 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant