Repository navigation
update style to pass ament_cpplint - #6
Conversation
There was a problem hiding this comment.
My understanding of this:
Is that you would not put #include <ament_index_cpp/visibility_control.h> ahead of #include <string>. Basically the only thing that goes ahead of system includes are matching header files for the current cpp file. Headers from the same package go last. Again as I see it, based on this example from their document:
// file: google-awesome-project/src/foo/internal/fooserver.cc
#include "foo/server/fooserver.h"
#include <sys/types.h>
#include <unistd.h>
#include <hash_map>
#include <vector>
#include "base/basictypes.h"
#include "base/commandlineflags.h"
#include "foo/server/bar.h"
There was a problem hiding this comment.
I do agree but couldn't get it to pass that way. Can you update this PR accordingly while still passing ament_cpplint?
There was a problem hiding this comment.
Yeah, I'll give it a shot.
There was a problem hiding this comment.
I have updated the includes of non-system headers to use quotes instead of angled brackets. This makes cpplint happy.
26db11b to
ae74c3e
Compare
|
lgtm |
ae74c3e to
5109f78
Compare
update style to pass ament_cpplint
This patch updates the code to follow ament_cppling (which is essentially Google's style guide with some minor changes). We need to find a consensus if we want to use this as our style guide. E.g. the repeated includes in the cpp files are something which we currently don't do.
Connect to ament/ament_lint#31