small fixes

This commit is contained in:
Costa Shulyupin 2018-07-21 23:05:18 +03:00
parent bd9e324f6c
commit 2e775dd340
1 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,7 @@ def func_referers_git_grep(name):
r = None
for line in popen(r'git grep --no-index --word-regexp --show-function '
r'"^\s.*\b%s" '
'**.\[hc\] **.cpp **.cc **.hh' % (name)):
r'**.\[hc\] **.cpp **.cc **.hh' % (name)):
# Filter out names in comment afer function,
# when comment start from ' *'
# To see the problem try "git grep -p and"
@ -185,7 +185,6 @@ def call_tree(node, printed=None, level=0):
if printed is None:
printed = set()
if node in printed:
limit = - 1
print_limited(level*'\t' + node + ' ^')
return
else: