Current Mood: cheerful
1 creating TAGS
1.2 METHOD 2
find -L $(srcDirs) -name '*.cpp' -o -name '*.h' | etags –c++kinds=+p -L -
notice that p (function prototypes) is off by default which means that etags was skipping over the function declaration in
header files. +p simply turns on the tagging of funtion prototypes (p) .
1.3 Using ExuberantCtags
To use ctags with emacs, you must supply the ‘-e’ parameter to instruct ctags to generate an emacs tag file.
The commands below are often sourced into a Makefile and then run with a CompileCommand.
ctags -e myfile.cpp
Ctags also has a recursive option, ‘-R’. This is the most common (and simple) usage.
To generate tags for all files that ctags recognizes, simply execute this from the terminal:
ctags -e -R .
You can filter it to specific extensions if needed:
ctags -e -R *.cpp *.hpp *.h
|gotta work to do
O man ! what am i doing. Gotta lot of work to do....
hurry up !!! Current Mood: hyper
|Jumping in !
So finally got into live journal. Its really good to jot down ones feeling into words. and who knows ur life can take a turn from this moment onwards.
Hoping a great time ahead.... Current Mood: optimistic