Goshido / android-vulkan

This repository is a project for learning Vulkan API, constraint based 3D physics, Lua scripting, spatial sound rendering, HTML+CSS UI rendering.
30 stars 3 forks source link

Reference '&' and '.hpp' code style #54

Closed Goshido closed 1 year ago

Goshido commented 1 year ago

Current code style has very hard rules about & usage. For function parameters & should be together with parameter name. Same time it should be together with C++ type on anything else. Such rules are not optimal and should be simplified.

New strategy

& should be unified and be together with variable name. Exactly the same rules as for function parameters.

.hpp renaming

The project is written in C++ so it's much appropriate to rename header files to .hpp.

Steps