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

C++: Apply some modernize-* checks from clang-tidy (nullptr, bool literals, void args) #38736

Merged
merged 3 commits into from
May 14, 2020

Conversation

akien-mga
Copy link
Member

Follow-up to #38697.

See available checks at https://clang.llvm.org/extra/clang-tidy/checks/list.html

I also tried:

  • modernize-deprecated-headers but it breaks the codebase, as we use some code like is_inf, and Clang on my distro can't even find cstdint by default.
  • modernize-raw-string-literal is nice, but it breaks our logic to extract strings with TTR(), so editor/translations/extract.py would have to be fixed (and the raw string would have to be re-escaped in Python before outputting the POT file for gettext).

There's a few more that we may want to evaluate:

@akien-mga akien-mga force-pushed the modernize-all-the-things branch from f14c63e to a1aaed5 Compare May 14, 2020 11:52
@akien-mga akien-mga merged commit 15b25b7 into godotengine:master May 14, 2020
@akien-mga akien-mga deleted the modernize-all-the-things branch May 14, 2020 12:50
akien-mga added a commit to akien-mga/godot that referenced this pull request Apr 29, 2021
Follow-up to godotengine#38736 (these uses were likely added after this PR was merged).
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