User Tools

Site Tools


cscope

Differences

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

Link to this comparison view

Next revision
Previous revision
cscope [2009/08/04 23:39] – created suapapacscope [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +cscope는 기본적으로 c소스만을 다룸 그래서:
 +<code bash>
 +#!/bin/sh
 +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
 +cscope -b -icscope.files
 +ctags -L cscope.files
 +</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://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]] 
 + 
 +====== cscope 를 사용한 확장 ====== 
 +  *[[http://code.google.com/p/cscope-win32/|Win32 port of cscope utilty]] 
 +  *[[http://mail.python.org/pipermail/python-list/2007-January/593667.html|call graph using python and cscope]] 
 +  *[[http://pypi.python.org/pypi/pycscope/0.2|pycscope]] 
 +  *[[http://kldp.org/node/81469|Emacs에서 파이썬 소스코드 브라우징 하기...]] 
 +  *[[http://www.viper.pe.kr/cgi-bin/moin.cgi/ctags_%EC%99%80_vi_%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0|ctags 와 vi 사용하기]]
cscope.1249429198.txt.gz · Last modified: 2013/08/03 05:04 (external edit)