-
Notifications
You must be signed in to change notification settings - Fork 1.2k
DOC: Add note on naming convention inconsistencies #5918
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
Conversation
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.
a few minor comments, basically lgtm but i would like to have another maintainer review before merge.
@fujitatomoya okay so how does this looks to you Note on naming conventions: ROS 2 projects show inconsistent application of the Google C++ Style Guide for constants and naming:
|
@anishk85 thanks for the reply.
i would remove this, because it is just a recommendation in Google code style that has been said in the top of this section already. probably we do not re-explain the recommendation of Google code style. other than that, i am okay with it. but i would like to have another review from maintainers before merge. |
@fujitatomoya can you tag another reviewer to kindly review this as soon as possible |
@christophebedard @ahcorde can you take a look at this when you have time? |
…ons.rst Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8813cbc)
Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8813cbc)
Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8813cbc)
(cherry picked from commit 8813cbc) Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Anish Kumar <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 8813cbc) Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Anish Kumar <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 8813cbc) Signed-off-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Anish Kumar <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Pull Request: Clarify Naming Convention Deviations in ROS 2 C++ Style Guide
What was fixed?
snake_case
,PascalCase
, andUPPER_CASE
for constants and variables, which deviates from the Google C++ Style Guide (which recommendskPascalCase
for constants).Why was this needed?
Where was it fixed?
source/The-ROS2-Project/Contributing/Code-Style-Language-Versions.rst
under the C++ > Variable Naming section.
Example of the new notice:
This change improves clarity for all contributors and reviewers working on ROS 2 C++ code.