???????
????????????????????????????????飬??????????????????????.???????: ????????????????????????????
??????Windows????sourceinsight????????????(???????ù????????????????????)???????????Linuxer???????????Windows????????????????Linux??????????????.
????????????????????Linux????????????.
????vim + ctags + cscope
????????????????.vim???ctags??cscope???????????????????????裬???????????????????.
???????
????sudo apt-get install vim ctags cscope
???????
????vim
????vim??????????????????????????????????????δ????????д??vim???????á???????????? Vim ???????????????????????.
????ctags
????ctags????ú????vim??????????ctags?????
?????????????????????ctags -R????????????tags????????????????Tags???????????????????????tag?????????
????· ?????????????????Ctrl + ]????????????崦
????· Ctrl + t???????????????λ??
??????????????ctags????????????????????????????ctags????е??????????????????λ????????.
????cscope
????vim??????????cscope?????.
?????????????????????cscope -Rbq????????cscope.out???(?????????)
????· -R: ???????????????????????????е????
????· -b: ????????????????????cscope?????
????· -q: ????cscope.in.out??cscope.po.out????????cscope?????????
?????????vim?????:cs add cscope.out??????????.
?????????????????:cs find x var???в???.(x?????????var???????????????????)
????cscope???8???????
????· s: ????C???????????????????????????????????
????· g: ???????????????????λ???????ctags?????????
????· d: ?????????????????
????· c: ?????????????????
????· t: ??????????????
????· e: ????egrep????????egrep??????????????????
????· f: ????????????????vim??find????
????· i: ?????????????????
???????磬????????vim 7.0????????в??????do_cscope()??????????????????????”:cs find c do_cscope“??????????????????????????????к???????do_cscope()????????????”:cs find s do_cscope“?????????C????????λ???????vim?г??????????????????λ?á?
??????ζ???????cs find????????????????е??鷳??????и???????????.????У?vim???????????????????.?????cscope??????????????.vimrc?м???.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" cscope setting
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("cscope")
set csprg=/usr/bin/cscope
set csto=1
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
endif
set csverb
endif
nmap <C-@>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-@>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-@>d :cs find d <C-R>=expand("<cword>")<CR><CR>
????????????ü???Ctrl + @???:cs find??????????????????????????????????????????????????Ctrl + @ + s?????????????????.????????????????????????????????????????.
???????????????????????????д??cscope??????÷????????????????????????÷??ο????????vi/vim??y???: ??????????? – cscope
????doxygen
???????????????????vim?????????????????????????????????????????????????????vim???????????.????????????doxygen????????.
????Doxygen is the de facto standard tool for generating documentation from annotated C++ sources?? but it also supports other popular programming languages such as C?? Objective-C?? C#?? PHP?? Java?? Python?? IDL (Corba?? Microsoft?? and UNO/OpenOffice flavors)?? Fortran?? VHDL?? Tcl?? and to some extent D.
????doxygen???????????????????????????????????????C++??????????????????????????.????????????????????????????ɡ?
??????????????doxygen????÷???.
??????????????????????doxygen -g??????????????e????????Doxyfile???????????????doxygen??????????????????.
??????????????????????????????????????????????????????????????????????????html??latex????????У???????????latex???.
????????????????????????????????????????????????????????????????.????????????????????????????????C?????.????C++??java????????????????????.??????????????????????.??????????????????.
???????????????????????????????????????????????????????.?????????????????????????????????????????????.д??????μ?????????????????????飬??????????·?????????????????????????????
????????????????????????????????????????????.
?????????Doxygen??????????ν?????????????ж???????????.?????????????????????????????????????????
???????????????????????????????????NO?????????????????????????(???????o???????????…)
????OPTIMIZE_OUTPUT_FOR_C
????OPTIMIZE_OUTPUT_JAVA
????OPTIMIZE_FOR_FORTRAN
????OPTIMIZE_OUTPUT_VHDL