*cflow
This commit is contained in:
parent
e7112db404
commit
eccc313b9e
10
srcxray.py
10
srcxray.py
|
@ -560,11 +560,15 @@ cflow_param = {
|
||||||
|
|
||||||
|
|
||||||
def cflow(a):
|
def cflow(a):
|
||||||
arg = a
|
if os.path.isfile('include/linux/cache.h'):
|
||||||
|
for m in popen("ctags -x --c-kinds=d include/linux/cache.h | cut -d' ' -f 1 | sort -u"):
|
||||||
|
if m in cflow_param['modifier']:
|
||||||
|
print(m)
|
||||||
|
else:
|
||||||
|
cflow_param['modifier'] += ' ' + a
|
||||||
if not a:
|
if not a:
|
||||||
# arg = "$(find -name '*.[ch]' -o -name '*.cpp' -o -name '*.hh')"
|
# arg = "$(find -name '*.[ch]' -o -name '*.cpp' -o -name '*.hh')"
|
||||||
arg = "*.c *.h *.cpp *.hh "
|
a = "$(cat cscope.files)" if os.path.isfile('cscope.files') else "*.c *.h *.cpp *.hh "
|
||||||
arg = " $(cat cscope.files)"
|
|
||||||
elif isinstance(a, list):
|
elif isinstance(a, list):
|
||||||
pass
|
pass
|
||||||
elif os.path.isdir(a):
|
elif os.path.isdir(a):
|
||||||
|
|
Loading…
Reference in New Issue