-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clang format file #31
base: develop
Are you sure you want to change the base?
Conversation
- Fixed an incorrect option name causing the formatting to not work - Increased column limit to 120 - Moved access modifiers back
this aligns more cloesly with the current codebase, and seems like a good idea since most of the code will be in the `GridKit` namespace
- Short functions will never be on a single line - Don't binpack arguments/parameters - Align pointers and references to the left
I've tested that this works with the current version of There is a new option added in (I believe) the latest version - version |
I added options in order of:
How they appear in the style guide
How they appear in the current code
If there are conflicts in the current code, then I picked the option I prefer
There currently isn't a formatting option for forcing a newline between includes and the rest of the file, however there is a pull request to add this feature, so it may exist in a future version.
Please see #32 for the current up to date formatting results of the file.