Skip to content

Style consistency #49

@BrandonLMorris

Description

@BrandonLMorris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions