You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've found that the codestyle is a bit vague in terms of the comments.
As we would like to use the Doxygen we have to decide which comment style is preferred.
Here you can find which comment styles can be processed by the Doxygen: https://www.stack.nl/~dimitri/doxygen/manual/docblocks.html
I think for multi lines comments there are two option:
Java style:
\**
* @brief One liner description
*
* Description...
* @param example parameter
*\
\** One line description *\
Qt style:
\*!
* \brief One liner description
*
* Description...
* \param example parameter
*\
\*! One line description *\
For me the Qt style seems nicer.
What do you think about it?
It's just a personal preference, for me the Qt's tag style seems nicer. But as the qtcreator (also personal preference) supports both so I'd fine with the java as well (probably it is widely supported in other IDE-s).
So if there are no objection we should use the java style and update the coding style.
I've added the critical label to this because we should improve the coding style as it lacks of necessary guidelines at the moment.
First of all we should discuss how to add multiline function declaration, and what line length we should use.
I started to use the Java_style and I have to agree with @kkristof in the Qt's style.
So I found the reason (what I was missing earlier) for choosing this style and it is the clarity.
@szledan yes, I agree. For me the Qt style is easier to read, but all of us should agree with that. So let's call a vote. We have +2 on the Qt style against the Java style. Please share your opinion. :)
Activity
kkristof commentedon Apr 3, 2016
Hi, I've found that the codestyle is a bit vague in terms of the comments.
As we would like to use the Doxygen we have to decide which comment style is preferred.
Here you can find which comment styles can be processed by the Doxygen: https://www.stack.nl/~dimitri/doxygen/manual/docblocks.html
I think for multi lines comments there are two option:
For me the Qt style seems nicer.
What do you think about it?
szledan commentedon Apr 4, 2016
I'd prefer the Java style.
Are there any reasons why we should choose the Qt style?
kkristof commentedon Apr 4, 2016
It's just a personal preference, for me the Qt's tag style seems nicer. But as the qtcreator (also personal preference) supports both so I'd fine with the java as well (probably it is widely supported in other IDE-s).
So if there are no objection we should use the java style and update the coding style.
kkristof commentedon Apr 14, 2016
I've added the critical label to this because we should improve the coding style as it lacks of necessary guidelines at the moment.
First of all we should discuss how to add multiline function declaration, and what line length we should use.
szledan commentedon Apr 14, 2016
I think the best way if we need to break a (too long) line then use one indentation (4 whitespace) style.
A note: use the break in the reasonable position.
szledan commentedon Apr 24, 2016
It is a 2. draft:
This is a work in progress version. But please review and comment it.
dbatyai commentedon Apr 24, 2016
+1, I like the second one.
szledan commentedon May 1, 2016
About the Doxygen style.
I started to use the Java_style and I have to agree with @kkristof in the Qt's style.
So I found the reason (what I was missing earlier) for choosing this style and it is the clarity.
kkristof commentedon May 2, 2016
@szledan yes, I agree. For me the Qt style is easier to read, but all of us should agree with that. So let's call a vote. We have +2 on the Qt style against the Java style. Please share your opinion. :)