Ask Your Question
1

Atom + linter-clang

asked 2017-05-02 11:35:42 -0500

David Lu gravatar image

updated 2017-05-02 11:41:39 -0500

gvdhoorn gravatar image

Trying to run linter-clang in Atom on some C++ files is running into trouble because it can't find the header files.

I notice that in Dirk's Atom Settings that he plugged at ROSCon, there are many ROS header include folders listed manually as part of the settings for clangIncludePaths.

What are the appropriate directories to list here, given that I'm using ROS 1.0/indigo and catkin-tools?

@Dirk Thomas

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-05-02 11:56:58 -0500

Dirk Thomas gravatar image

Listing /opt/ros/indigo/include should be sufficient to get the system installed ROS packages (see the Kinetic line my config: https://gist.github.com/dirk-thomas/4... ).

Additionally you want the include folders from your workspace(s). Depending on how you build your workspace(s) that might become more effort. If you always install into a single location (merged install space). you just add that one too: e.g. ~/ws/install/include. If you install into package specific paths you will need to enumerate them all, e.g.:

  • ~/ws/install/pkgA/include
  • ~/ws/install/pkgB/include
  • ...

And in the case you don't install at all you will have to specify potentially two paths for each package: one pointing to the include folder in the source space and another pointing to the include folder in the devel space.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-05-02 11:35:42 -0500

Seen: 351 times

Last updated: May 02 '17