c++ - How can etags handle multiple directories -


how possible under emacs , c++ extend etags covering multiple directories? (i not referring recursive etgas has straight forward solution using -r option).

something needed, example, in case using third party library, including headers, installed anywhere in directory structure.

an similar problem facing emacs c++ editor how open included header file directly #include directive.

this trivial ide's (like vc_++) since include headers path part of project cannot find similar solution emacs thinner environment not using concept of project....

answering main question: use find traverse directories example in tagging script:

find . \( -name "*[tt]est*" -o -name "cvs" -o -name "*#*" -o -name "html" -o -name "*~" -o -name "*.ca*" \) -prune -o \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.cxx" -o -iname "*.h"  -o -iname "*.hh" \) -exec etags -a {} \; 

tip c++ , solution included header: see if cscope works better you.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -