-
Notifications
You must be signed in to change notification settings - Fork 27
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
Code style doc page #103
base: master
Are you sure you want to change the base?
Code style doc page #103
Conversation
|
||
// Same apply for C++ loops too | ||
|
||
while (condition) { ... } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid single line :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// - Brace on the new line | ||
// - And no space before function bracket | ||
|
||
void my_function() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was defined we should keep this style below?
void
my_function()
{
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL the vote was 50-50 I didn't know what to choose without offending the other parties XD
Synfig and GTKMM code specifically tend to have lengthy return types so I voted your above style in the forum. Also, GTK dev team uses/recommends that in their codebase too.
I'll update the doc anyway... 😅
Added them to Contributing guidelines section
Some of the topics I skipped where the vote was 50-50.Still more pending topics to add but I guess the initial draft is the best time when modification is less painful XD
All topics added to the best of my knowledge reading the forum.
Any criticisms are welcome.
Also since we are low in manpower I might mark this PR as ready to merge in July so it doesn't stay in draft mode forever.