This repository has been archived by the owner on Aug 30, 2020. It is now read-only.
ROS catkin support: replace the tmp catkin devel/include with the one from the workspace #106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When developing with ROS and catkin_make files get deployed into a 'devel' folder during the build process. Apart from libraries and binaries, also auto-generated header files will be installed into this folder structure under 'devel/include'.
When doing a fake-build with YCM-Generator, this devel folder gets created in /tmp and this is then entered in the config. Up until now it is necessary to adapt this path manually after letting YCM-Generator run, which is necessary each time a new package is added to the workspace, as they bring their own new include directories.
This patch searches for the base directory by parsing the include paths for the keywords 'catkin_workspace' or 'catkin_ws'.
I am very well aware, that this patch is not yet ready to merge, for now I would only like to know whether a patch like this, which is very specific to ROS/catkin_make has a chance to get merged or not.
If you think that this is too specific to get merged, just decline this PR, then I'll try to maintain my own fork with those changes.
Cheers
Felix