Add clang-format with proper C/C++ code style #2

Merged
wilson048 merged 1 commit from Lui798/3DS-Sweeper:clang-format into main 2024-09-23 17:39:16 -05:00
Contributor

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.

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.
wilson048 approved these changes 2024-09-23 17:38:55 -05:00
wilson048 left a comment

Just Reformatting code

Just Reformatting code
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
wilson048/3DS-Sweeper!2
No description provided.