Add clang-format with proper C/C++ code style #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Lui798/3DS-Sweeper:clang-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a .clang-format to make the project conform to a consistent code style. I based it off an existing one for the recommended C/C++ code style. I would check out my branch and see if you find this more readable, we can edit the .clang-format if you have any nitpicks.
If you have the C/C++ extension installed and "Format On Save" enable in VS Code settings, it should automatically format to the style whenever you save.
I think it would be nice to do more refactors to eliminate duplicate code after this.
Also, if/when you merge this, I would use the Squash Merge option.
Just Reformatting code