?

Log in

No account? Create an account
quantum_dot's Journal
 
[Most Recent Entries] [Calendar View] [Friends]

Below are the 3 most recent journal entries recorded in quantum_dot's LiveJournal:

Wednesday, June 22nd, 2011
1:03 am
EMACS TAGS







myBlogs







1 creating TAGS








1.1 METHOD 1




Ref: http://justinsboringpage.blogspot.com/2009/03/using-tags-in-emacs-on-windows.html
Go to the root folder of your project.
find . -regex ".*\(h$\|cpp$\)" > files.txt
Next pass this to etags to generate the tags table.
etags.exe - < files.txt






1.2 METHOD 2




Ref: http://awhan.wordpress.com/2010/03/30/emacs-c-tags/
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




Ref: http://www.emacswiki.org/emacs/BuildTags
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.



cd /path/to/my/project
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:



cd /path/to/my/project
ctags -e -R .



You can filter it to specific extensions if needed:



cd /path/to/my/project
ctags -e -R *.cpp *.hpp *.h








Author:
<ggne0201@LWUS2B049>


Date: 2011-06-22 01:01:49


HTML generated by org-mode 6.33x in emacs 23







Current Mood: cheerful
Friday, May 12th, 2006
2:55 pm
gotta work to do
O man ! what am i doing. Gotta lot of work to do....
hurry up !!!

Current Mood: hyper
2:38 pm
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
About LiveJournal.com