small fixes
This commit is contained in:
parent
bd9e324f6c
commit
2e775dd340
|
@ -78,7 +78,7 @@ def func_referers_git_grep(name):
|
||||||
r = None
|
r = None
|
||||||
for line in popen(r'git grep --no-index --word-regexp --show-function '
|
for line in popen(r'git grep --no-index --word-regexp --show-function '
|
||||||
r'"^\s.*\b%s" '
|
r'"^\s.*\b%s" '
|
||||||
'**.\[hc\] **.cpp **.cc **.hh' % (name)):
|
r'**.\[hc\] **.cpp **.cc **.hh' % (name)):
|
||||||
# Filter out names in comment afer function,
|
# Filter out names in comment afer function,
|
||||||
# when comment start from ' *'
|
# when comment start from ' *'
|
||||||
# To see the problem try "git grep -p and"
|
# To see the problem try "git grep -p and"
|
||||||
|
@ -108,7 +108,7 @@ def func_referers_cscope(name):
|
||||||
cscope_warned = True
|
cscope_warned = True
|
||||||
return []
|
return []
|
||||||
res = set([l.split()[1] for l in popen(r'cscope -d -L3 "%s"' %
|
res = set([l.split()[1] for l in popen(r'cscope -d -L3 "%s"' %
|
||||||
(name)) if l not in black_list])
|
(name)) if l not in black_list])
|
||||||
if not res:
|
if not res:
|
||||||
res = func_referers_git_grep(name)
|
res = func_referers_git_grep(name)
|
||||||
return res
|
return res
|
||||||
|
@ -185,7 +185,6 @@ def call_tree(node, printed=None, level=0):
|
||||||
if printed is None:
|
if printed is None:
|
||||||
printed = set()
|
printed = set()
|
||||||
if node in printed:
|
if node in printed:
|
||||||
limit = - 1
|
|
||||||
print_limited(level*'\t' + node + ' ^')
|
print_limited(level*'\t' + node + ' ^')
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue