From 67b66fef45d002dc0f7dc600e25a305d78602382 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 14 Oct 2021 14:25:57 +0200 Subject: [PATCH] vim/ctags: extras opt get renamed into extra --- .vim/plugin/cscope_plus.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.vim/plugin/cscope_plus.vim b/.vim/plugin/cscope_plus.vim index 0397093..ea782f5 100644 --- a/.vim/plugin/cscope_plus.vim +++ b/.vim/plugin/cscope_plus.vim @@ -87,19 +87,19 @@ endif " --c++-kinds=+p : Adds prototypes in the database for C/C++ files. " --fields=+iaS : Adds inheritance (i), access (a) and function " 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. let g:build_cmd="make" func! MenuCB(id, result) 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 '==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 '==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 --extra=+q -aL-" silent exec "!echo '==Building cscope database==' && cscope -bR" silent "cscope reset" silent "cscope add cscope.out" exec 'redraw!' 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 "cscope reset" silent "cscope add cscope.out"