막상 ctags를 돌려보니 main()은 보이는데
그아래의 변수들이 보이지 않는 현상 발생 -_-
이게 무슨 신혼첫날밤에 발기부전 걸리는 소리야! 라는 생각에
검색을 해보니 공식적인 내용은 발견하지 못했지만 아래의 내용들 발견..

ctagas는 원래 로컬 변수들은 못다루는듯 -_-
확인겸 openCV 소스를 받아서 전체를 돌리고 vi에서 해보니
main(int argc, char** argv) 의 argv를 소스내에서 찾으니 엉뚱한 곳으로 날아간다.

I know CTags does not handle local vars, However, the code I said I will be happy to contribute uses also a lexer + written with flex language to analyze a current scope (small scope, the main parsing is done via CTags)

즉, ctags만으로는 지역변수나 전역변수가 사용된 곳, 함수가 사용된 곳은 찾기 힘들다. 이때는 cscope를 사용하면 된다.
[링크 : http://blog.naver.com/parkys1982/30014739315

12. How can I locate all references to a specific function or variable?

There are several packages already available which provide this capability. As of this writing, they are:
GLOBAL source code tag system
GNU id-utils
cscope
cflow
 
[링크 : http://ctags.sourceforge.net/faq.html#12

'프로그램 사용 > ctags & cscope' 카테고리의 다른 글

kscope 에서 특정 확장자 추가하기  (0) 2009.11.04
kscope 프로젝트 생성하기  (0) 2009.08.20
ctags format - CTAGS 출력 포맷/양식  (0) 2009.06.14
ctags  (0) 2009.01.07
Posted by 구차니