lib.py/script.sh: Handle ctags __anon correctly
Disable __anon output from ctags instead of blacklisting them in lib.py See : https://github.com/universal-ctags/ctags/issues/2572 Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
parent
086250fb03
commit
781c5d6e2c
2 changed files with 2 additions and 2 deletions
2
lib.py
2
lib.py
|
|
@ -172,7 +172,7 @@ blacklist = (
|
|||
def isIdent(bstr):
|
||||
if (len(bstr) < 2 or
|
||||
bstr in blacklist or
|
||||
bstr.startswith((b'__anon', b'~'))):
|
||||
bstr.startswith(b'~')):
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ parse_defs_C()
|
|||
git cat-file blob "$opt1" > "$full_path"
|
||||
|
||||
# Use ctags to parse most of the defs
|
||||
ctags -x --kinds-c=+p+x "$full_path" |
|
||||
ctags -x --kinds-c=+p+x --extras='-{anonymous}' "$full_path" |
|
||||
grep -avE "^operator |CONFIG_" |
|
||||
awk '{print $1" "$2" "$3}'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue