Enable ctags extern variable support
This is needed to fix https://github.com/bootlin/elixir/issues/61 Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
parent
b6606359e0
commit
155733bdd9
2 changed files with 3 additions and 2 deletions
3
data.py
3
data.py
|
|
@ -41,7 +41,8 @@ defTypeR = {
|
|||
's': 'struct',
|
||||
't': 'typedef',
|
||||
'u': 'union',
|
||||
'v': 'variable' }
|
||||
'v': 'variable',
|
||||
'x': 'externvar'}
|
||||
|
||||
defTypeD = {v: k for k, v in defTypeR.items()}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ parse_defs_C()
|
|||
tmp=`mktemp -d`
|
||||
full_path=$tmp/$opt2
|
||||
git cat-file blob "$opt1" > "$full_path"
|
||||
ctags -x --kinds-c=+p-m "$full_path" |
|
||||
ctags -x --kinds-c=+p+x-m "$full_path" |
|
||||
grep -avE "^operator |CONFIG_" |
|
||||
awk '{print $1" "$2" "$3}'
|
||||
rm "$full_path"
|
||||
|
|
|
|||
Loading…
Reference in a new issue