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

Remove uses of auto for better readability and online code reviews #48185

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Apr 25, 2021

The current code style guidelines forbid the use of auto.

Some uses of auto are still present, such as in UWP code (which can't be currently tested) and macros (where removing auto isn't easy).

There are further code style changes that need to be made (there are some camelCase variables), but these changes should be made separately.

Note: The use of auto is not up for debate here – it's already been discussed at length 🙂

modules/mono/csharp_script.cpp Outdated Show resolved Hide resolved
modules/mono/csharp_script.cpp Outdated Show resolved Hide resolved
@neikeq
Copy link
Contributor

neikeq commented Apr 25, 2021

I agree with the change as it's our code style, but more readable? I think not.

modules/mono/csharp_script.cpp Outdated Show resolved Hide resolved
The current code style guidelines forbid the use of `auto`.

Some uses of `auto` are still present, such as in UWP code (which
can't be currently tested) and macros (where removing `auto` isn't
easy).
@akien-mga akien-mga merged commit 639b02f into godotengine:master Apr 26, 2021
@akien-mga
Copy link
Member

Thanks!

@madmiraal madmiraal mentioned this pull request May 1, 2021
@Calinou Calinou deleted the codestyle-no-auto branch August 3, 2021 16:00
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.

4 participants