ign -> gz : Remove redundant namespace references#479
Conversation
Codecov Report
@@ Coverage Diff @@
## ign-math6 #479 +/- ##
==========================================
Coverage 99.68% 99.68%
==========================================
Files 73 73
Lines 6913 6913
==========================================
Hits 6891 6891
Misses 22 22
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
10a152e to
052e4b0
Compare
chapulina
left a comment
There was a problem hiding this comment.
LGTM, I just have minor comments about being more explicit when the functions could be confused with those in the std:: namespace. It's not a big deal though, because we always use the std namespace explicitly and I believe the compiler (at least the ones we support) would complain if there was an ambiguity.
|
the results here seem inconsistent; sometimes the |
It's dependent on the appearance of a preceding I couldn't get the namespaces removed for class declarations and function arguments and still have it compile as well :o |
a543c98 to
a80354c
Compare
Speaking of which, I have an explicit escape hatch to not remove the following namespaces :D (mainly because it kept giving me compilation errors)
So it's always guaranteed that an explicit use of |
Signed-off-by: methylDragon <methylDragon@gmail.com>
a80354c to
3cddef8
Compare
I think extra namespaces are sometimes included as a style choice or to make it more obvious where the given method is being called from, so this PR is kind of a big set of style changes. I would have no qualms about this if it only removed That said, I'm willing to accept these changes but with hesitation |
We haven't been enforcing a specific style when it comes to using namespaces. We've actually not been following the Google style guide too closely, because we use We just need to be careful not to call top-level global functions by mistake as it happened in gazebosim/gz-common#414 (comment), because that actually changes the code. |
agreed; I just wanted to express a concern |
Part of: gazebo-tooling/release-tools#784