3
好吧,我剛剛安裝的ctags,我已經試過這樣的ctags解析整個C庫:的ctags不解析某些CLIB頭
ctags -I__wur --c++-kinds=+p --fields=+iaS -f ~/.tags/tags /usr/include/*.h
看來,此行沒有按」 t正確解析一些庫。例如,如果我在fclose函數上打了C-],ctags會指示我到/usr/include/stdio.h fclose的行,並且我可以看到有關該函數的所有信息。但奇怪的東西發生在函數的原型,它在string.h中。例如,如果我打C-]上的strcpy,我得到以下信息:
E426: tag not found: strcpy
所以我決定來解析標籤文件,這樣的:
ctags -R -I__wur --c++-kinds=+p --fields=+iaS -f ~/.tags/tags /usr/include/
現在,如果我打G]上strcpy的,我可以選擇下列文件之一打開:
/usr/include/bits/string.h
/usr/include/bits/string2.h
/usr/include/bits/string3.h
但不知何故,我看不到/usr/include/string.h。這裏有什麼問題?我不正確地使用ctags嗎?