Repository navigation
Clang Tidy naming - #917
BryceStevenWilley wants to merge 7 commits into
Conversation
1d17f03 to
e5e8f27
Compare
…, lower if parameter or local).
e5e8f27 to
79aaf71
Compare
|
Not sure if WMD is the best time to merge this, but I've updated in case it should be. |
|
this should target melodic, but note that the two branches have diverged at this point due to things like TF2 so you probably want to re-run these scripts from scratch on melodic |
|
Before redoing this now the 3rd? time, I suggest to wait until WMD commits have been settled. |
| @@ -374,36 +374,36 @@ void AllowedCollisionMatrix::print(std::ostream& out) const | |||
| getAllEntryNames(names); | |||
| *ConstraintSamplerPtr | ||
| */ | ||
| static ConstraintSamplerPtr selectDefaultSampler(const planning_scene::PlanningSceneConstPtr& scene, | ||
| static ConstraintSamplerPtr SelectDefaultSampler(const planning_scene::PlanningSceneConstPtr& scene, |
There was a problem hiding this comment.
API change like this must target melodic
There was a problem hiding this comment.
As a function this should be lower case anyway, shouldn't it?
There was a problem hiding this comment.
At the moment, static class methods are CamelCase, to distinguish them from normal class methods, which are camelBack.
There was a problem hiding this comment.
Is there agreement on this?? Wasn't CamelCase reserved for types / class names?
There was a problem hiding this comment.
Is there agreement on this?
No one else has said much, I'm happy to revert this commit. I believe my original reasoning was to distinguish static methods from normal methods somehow.
There was a problem hiding this comment.
actually yea, a function should be camelBack in ros format
|
Looks like the merges from WMD are slowing down, so closing this in favor of #1185. |
Description
Gave clang-tidy some teeth when it comes to identifier naming. Conventions are based on what was proposed in #814 with a few additions and exceptions:
CamelCaseUPPER_CASE)Randr, both becomer). Gave better names as best as I could.Something to consider is that changing the class methods possibly breaks API. All of those changes are contained in the 2nd-to-last commit and can be easily reverted though.
Also, I'm not sure if
kinetic-develormelodic-develis the main development branch at the moment, so I left this onkinetic-devel. Feel free to change.Feel free to suggest additional identifiers to standardize. The code is the only good documentation for this
clang-tidyfeature right now, so see here for the list of supported identifier types and here for the case types. We can also add arbitrary prefixes and suffixes to any identifier.Checklist
Extended the tutorials / documentation, if necessary referenceInclude a screenshot if changing a GUIOptional: Created tests, which fail without this PR referenceOptional: Decide if this should be cherry-picked to other current ROS branches (Indigo, Jade, Kinetic)