From eccc313b9ea17b87c903f0e1495d6e3fafe7e8b4 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Tue, 7 Aug 2018 09:03:32 +0300 Subject: [PATCH] *cflow --- srcxray.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcxray.py b/srcxray.py index 5cc5ec3..d7e7702 100755 --- a/srcxray.py +++ b/srcxray.py @@ -560,11 +560,15 @@ cflow_param = { 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: # arg = "$(find -name '*.[ch]' -o -name '*.cpp' -o -name '*.hh')" - arg = "*.c *.h *.cpp *.hh " - arg = " $(cat cscope.files)" + a = "$(cat cscope.files)" if os.path.isfile('cscope.files') else "*.c *.h *.cpp *.hh " elif isinstance(a, list): pass elif os.path.isdir(a):