Repository navigation
update code to pass ament_cpplint - #102
Conversation
79d4323 to
dc5a625
Compare
There was a problem hiding this comment.
I don't think these count as our headers, and so I believe they should be included with <> and should be treated something like boost would be. I think they should fall under "Other libraries' .h files." as described in https://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Names_and_Order_of_Includes. To be fair, the guide doesn't clearly state which include style should be used for "Other libraries' .h files.".
This might be a case which isn't covered by the linter and in which case we need to clearly state what we do and make the linter agree with a patch. In my opinion it should be something like this example:
(project/src/foo.cpp)
#include "project/foo.hpp"
#include <stdio.h>
#include <iostream>
#include <boost/thread.hpp>
#include "project/other.hpp"Thoughts?
There was a problem hiding this comment.
Afaik it is recommended to use <> for system headers. I wouldn't classify Connext as such.
There was a problem hiding this comment.
Hmm, I'm not sure I agree. Neither Boost nor Qt examples suggest to user to use quotes when including their headers and they are not "system headers". The Google style guide doesn't say one way or the other and neither does the "include what you use" tool from Google. I don't see good rationals out there for one way or the other, but this just seems like using quotes to make the linter happy.
I suppose we just forget about it.
There was a problem hiding this comment.
For these lines cpplint actually doesn't care. I reverted them to how they were before the PR.
fe9f2d5 to
10b3705
Compare
|
+1 |
update code to pass ament_cpplint
No description provided.