The project has a number of stylistic inconsistencies. While this is purely aesthetic, adhering to a style guide can improve readability, especially for developers new to the project.
I suggest we use Google's C++ Style Guide, at least for the main issues:
- 2 space indentation (no tabs)
- 80 character maximum line length
- CamelCase variable/class names
Reformatting the project can be done automatically with the clang-format tool (note that this will show up as major changes in git). Simply run
clang-format -style=Google -i **/*.cpp && clang-format -style=Google -i **/*.h
in either the project root directory or in the src and test directories.
The project has a number of stylistic inconsistencies. While this is purely aesthetic, adhering to a style guide can improve readability, especially for developers new to the project.
I suggest we use Google's C++ Style Guide, at least for the main issues:
Reformatting the project can be done automatically with the
clang-formattool (note that this will show up as major changes in git). Simply runclang-format -style=Google -i **/*.cpp && clang-format -style=Google -i **/*.hin either the project root directory or in the
srcandtestdirectories.