-
Notifications
You must be signed in to change notification settings - Fork 67
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
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. |
1f5fae8
to
10a152e
Compare
10a152e
to
052e4b0
Compare
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.
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 <[email protected]>
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