Skip to content
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

SPC mga not working for opening header files for corresponding cxx files #3480

Closed
dmsurti opened this issue Oct 20, 2015 · 4 comments
Closed

Comments

@dmsurti
Copy link

dmsurti commented Oct 20, 2015

I cannot open a header file for a '.cxx' file. I am working on VTK project which uses CMake. https://gitlab.kitware.com/vtk/vtk.

For example, opening: Rendering/Core/OpenGL2/vtkPolyDataMapper.cxx, then vtkPolyDataMapper.h is not opened with SPC mga.

To make this work, I had to update my dotspacemacs/config as such:

  (add-to-list 'projectile-other-file-alist '("cxx" . ("h" "hxx" "ixx")))
  (add-to-list 'projectile-other-file-alist '("h" . ("c" "cpp" "cxx" "ipp" "hpp" "m" "mm")))

I referred to this for updating the alist: https://github.com/bbatsov/projectile/blob/master/projectile.el#L1198

@StreakyCobra
Copy link
Contributor

This should probably be added to the c-c++ layer, or at least documented.

@StreakyCobra
Copy link
Contributor

Hum, looking at it more carefully, I think it should be reported upstream first.

@StreakyCobra
Copy link
Contributor

I reported it upstream: bbatsov/projectile#918

@StreakyCobra
Copy link
Contributor

PR'ed upstream: bbatsov/projectile#934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants