Coding style/guidelines for contributors?

55 views
Skip to first unread message

Sergei Dyshel

unread,
Jun 13, 2017, 5:24:57 AM6/13/17
to glogg
I would like to contribute to the project and before I start writing any code I'd like to know coding style (whitespace, braces etc.) which is required by the author. When opening  the QtCreator project I'm asked to define these so I guess they aren't part of the project. Some stuff is easy to guess, such as putting spaces inside parenthesis (i.e. "( this_var = 5 )") (older code doesn't adhere to it though) others are nearly impossible, such as maximum line length. 

Nicolas Bonnefon

unread,
Jun 21, 2017, 12:50:50 PM6/21/17
to glogg
On Tuesday, 13 June 2017 10:24:57 UTC+1, Sergei Dyshel wrote:
I would like to contribute to the project and before I start writing any code I'd like to know coding style (whitespace, braces etc.) which is required by the author. When opening  the QtCreator project I'm asked to define these so I guess they aren't part of the project. Some stuff is easy to guess, such as putting spaces inside parenthesis (i.e. "( this_var = 5 )") (older code doesn't adhere to it though) others are nearly impossible, such as maximum line length. 

There is currently no formal coding style but I try to keep it consistent. Code width is 80 characters (most of the time!).
I am not currently using a formatting tool but I see you have added a clang-format config on your branch so I might give it a go.

Thanks a lot!

N.

 
Reply all
Reply to author
Forward
0 new messages