User Tools

Site Tools


cscope

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cscope [2009/08/06 07:32] suapapacscope [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 4: Line 4:
 rm -rf cscope.files cscope.files rm -rf cscope.files cscope.files
 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 -cscope.files+cscope -b -icscope.files 
 +ctags -L cscope.files
 </code> </code>
 +도스(cygwin)에서는 find가 도스 명령어로 먹기 때문에 다음과 같이 전체 path로 적어준다.
 +<code>
 +@c:\apps\cygwin\bin\find ...
 +@c:\apps\cygwin\bin\cscope ...
 +</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://irdeal.tistory.com/tag/cscope|cscope 사용하기]] 
   *[[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]]
cscope.1249543971.txt.gz · Last modified: 2013/08/03 05:04 (external edit)