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

Custom linter: Disallow raw usage of auto, only allow auto& and auto* #68

Open
MonsterDruide1 opened this issue Jun 5, 2024 · 1 comment

Comments

@MonsterDruide1
Copy link
Owner

The game usually doesn't work with raw types in functions, but mostly references or pointers to objects (except Vector/Matrix, which can occur very often, but auto can be avoided here by using implicit constructors instead). While auto is not technically wrong and often still matches, it is still obscuring the unterlying type. Sometimes, this might be fine (for example new calls), but for these circumstances, we should still have the * or & directly annotated on the type, to avoid confusion.

@MonsterDruide1
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant