Can ctags be made to follow #include directives?
问题 I am trying to create a target in my Makefile to automatically create a tags file using ctags. I have a list of source files (.cpp files) but I don't have a list of all the header files (I use g++ -MM to create the list of header dependencies). I would have assumed that ctags would follow any #include directives in the .cpp files when generating the tags, but it seems my assumption is wrong. If I create a simple tags file like this: ctags --fields=+iaS --extra=+q myClass.cpp and then go into