summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMathieu Maret <mathieu.maret@gmail.com>2016-10-11 13:55:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-11 15:06:33 -0700
commitd0c75f33f065bf58833c43ac7b5ccfcb60131510 (patch)
treed5746f2eeab04972c28817bb3b01a8eed4c9724a /scripts
parent9099daed9c6991a512c1f74b92ec49daf9408cda (diff)
downloadop-kernel-dev-d0c75f33f065bf58833c43ac7b5ccfcb60131510.zip
op-kernel-dev-d0c75f33f065bf58833c43ac7b5ccfcb60131510.tar.gz
scripts/tags.sh: enable code completion in VIM
Vim, with the omnicppcomplete(#1) plugin, can do code completion using information build by ctags. Add flags needed by omnicppcomplete(#2) to have completion on member of structure. 1: https://github.com/vim-scripts/omnicppcomplete 2: https://github.com/vim-scripts/OmniCppComplete/blob/master/doc/omnicppcomplete.txt#L93 Link: http://lkml.kernel.org/r/20160830191546.4469-1-mathieu.maret@gmail.com Signed-off-by: Mathieu Maret <mathieu.maret@gmail.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh
index b3775a96..a2ff338 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -263,7 +263,8 @@ exuberant()
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \
-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
-I static,const \
- --extra=+f --c-kinds=+px --langmap=c:+.h "${regex[@]}"
+ --extra=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
+ "${regex[@]}"
setup_regex exuberant kconfig
all_kconfigs | xargs $1 -a \
OpenPOWER on IntegriCloud