vim/ctags: extras opt get renamed into extra
This commit is contained in:
parent
a4d8ef9380
commit
67b66fef45
@ -87,19 +87,19 @@ endif
|
|||||||
" --c++-kinds=+p : Adds prototypes in the database for C/C++ files.
|
" --c++-kinds=+p : Adds prototypes in the database for C/C++ files.
|
||||||
" --fields=+iaS : Adds inheritance (i), access (a) and function
|
" --fields=+iaS : Adds inheritance (i), access (a) and function
|
||||||
" signatures (S) information.
|
" signatures (S) information.
|
||||||
" --extras=+q : Adds context to the tag name. Note: Without this
|
" --extra=+q : Adds context to the tag name. Note: Without this
|
||||||
" option, the script cannot get class members.
|
" option, the script cannot get class members.
|
||||||
let g:build_cmd="make"
|
let g:build_cmd="make"
|
||||||
func! MenuCB(id, result)
|
func! MenuCB(id, result)
|
||||||
if a:result == 1
|
if a:result == 1
|
||||||
silent exec "!echo '==Building ctags database==' && ctags --fields=+iaS --extras=+q --totals -R --c++-kinds=+p --exclude=.ccls-cache"
|
silent exec "!echo '==Building ctags database==' && ctags --fields=+iaS --extra=+q --totals -R --c++-kinds=+p --exclude=.ccls-cache"
|
||||||
silent exec "!echo '==Adding system headers==' && find -exec gcc -M '{}' \\; 2>&- | tr '[:space:]' '\\n' | grep '^/.*' | sort -u | ctags --c-kinds=+px --c++-kinds=+px --fields=+iaS --extras=+q -aL-"
|
silent exec "!echo '==Adding system headers==' && find -exec gcc -M '{}' \\; 2>&- | tr '[:space:]' '\\n' | grep '^/.*' | sort -u | ctags --c-kinds=+px --c++-kinds=+px --fields=+iaS --extra=+q -aL-"
|
||||||
silent exec "!echo '==Building cscope database==' && cscope -bR"
|
silent exec "!echo '==Building cscope database==' && cscope -bR"
|
||||||
silent "cscope reset"
|
silent "cscope reset"
|
||||||
silent "cscope add cscope.out"
|
silent "cscope add cscope.out"
|
||||||
exec 'redraw!'
|
exec 'redraw!'
|
||||||
elseif a:result == 2
|
elseif a:result == 2
|
||||||
silent exec "!echo '==Building ctags database==' && ctags --fields=+iaS --extras=+q --totals -R --c++-kinds=+p"
|
silent exec "!echo '==Building ctags database==' && ctags --fields=+iaS --extra=+q --totals -R --c++-kinds=+p"
|
||||||
silent exec "!echo '==Building cscope database==' && cscope -bkR"
|
silent exec "!echo '==Building cscope database==' && cscope -bkR"
|
||||||
silent "cscope reset"
|
silent "cscope reset"
|
||||||
silent "cscope add cscope.out"
|
silent "cscope add cscope.out"
|
||||||
|
Loading…
Reference in New Issue
Block a user