scripts/tags.sh: enable code completion in VIM
authorMathieu Maret <mathieu.maret@gmail.com>
Sat, 10 Sep 2016 10:36:34 +0000 (20:36 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2016 03:57:02 +0000 (13:57 +1000)
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>
scripts/tags.sh

index b3775a9604eac9ff7d7e4b667003969408d3d491..a2ff3388e5ea396f478870b47e79faadb73cca02 100755 (executable)
@@ -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                              \
This page took 0.026106 seconds and 5 git commands to generate.