Both sides previous revisionPrevious revisionNext revision | Previous revision |
cscope [2009/08/18 06:03] – suapapa | cscope [2013/08/03 05:04] (current) – external edit 127.0.0.1 |
---|
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files | find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files |
cscope -b -icscope.files | cscope -b -icscope.files |
| ctags -L cscope.files |
</code> | </code> |
도스(cygwin)에서는 find가 도스 명령어로 먹기 때문에 다음과 같이 전체 path로 적어준다. | 도스(cygwin)에서는 find가 도스 명령어로 먹기 때문에 다음과 같이 전체 path로 적어준다. |
<code> | <code> |
@echo "소스 리스트 생성 -> cscope.files" | @c:\apps\cygwin\bin\find ... |
@c:\apps\cygwin\bin\find ./ \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files | @c:\apps\cygwin\bin\cscope ... |
@echo "디비 생성 -> cscope.out" | |
@c:\apps\cygwin\bin\cscope -b -i cscope.files | |
@echo "끝" | |
</code> | </code> |
| ====== SourceCodeObedience - vim plugin ====== |
| *[[http://www.vim.org/scripts/script.php?script_id=1638|SCO]] |
| <code txt> |
| nnoremap c<Space>g :SCOGlobal expand('<cword>')<CR> |
| nnoremap c<Space>c :SCOSymbol expand('<cword>')<CR> |
| nnoremap c<Space>s :SCOSaveSearch<CR> |
| nnoremap c<Space>t :SCOTag ''<CR> |
| nnoremap c<Space>w :SCOWhoCall expand('<cword>')<CR> |
| nnoremap c<Space>i :SCOInclude expand('<cfile>')<CR> |
| nnoremap c<Space>f :SCOFile expand('<cfile>')<CR> |
| nnoremap c<Space>b :SCOBuffer<CR> |
| nnoremap c<Space>m :SCOMark<CR> |
| nnoremap c<Space>n :SCOMarkSmart<CR> |
| nnoremap c<Space>r :SCOReMark<CR |
| </code> |
| - tags와 scope 생성 |
| - 동일 디렉토리에서 gvim 프로젝트명.sco |
| |
| ====== another references ====== |
*[[http://www.vim.org/scripts/script_search_results.php?keywords=cscope&script_type=&order_by=creation_date&direction=descending&search=search|gvim scope plugins]] | *[[http://www.vim.org/scripts/script_search_results.php?keywords=cscope&script_type=&order_by=creation_date&direction=descending&search=search|gvim scope plugins]] |
*[[http://cscope.sourceforge.net/cscope_vim_tutorial.html|The Vim/Cscope tutorial]] | *[[http://cscope.sourceforge.net/cscope_vim_tutorial.html|The Vim/Cscope tutorial]] |
*[[http://objectmix.com/editors/149864-gvim-split-windows-cscope-linux.html|Gvim split windows for cscope in Linux : Editors]] | *[[http://objectmix.com/editors/149864-gvim-split-windows-cscope-linux.html|Gvim split windows for cscope in Linux : Editors]] |
| |
====== cscope 를 사용한 확장 ====== | ====== cscope 를 사용한 확장 ====== |
*[[http://code.google.com/p/cscope-win32/|Win32 port of cscope utilty]] | *[[http://code.google.com/p/cscope-win32/|Win32 port of cscope utilty]] |