Skip to content

Commit 5be6846

Browse files
Costa ShulyupinCosta Shulyupin
authored andcommitted
notes
1 parent 0b9d286 commit 5be6846

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

srcxray.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def func_referrers_git_grep(name):
193193
def func_referrers_cscope(name):
194194
# Subfunction for searching referrers with cscope.
195195
# Works fast.
196-
# Obsoleted by doxygen_xml.
196+
# Prefer to use doxygen_xml.
197197
global cscope_warned
198198
if not os.path.isfile('cscope.out'):
199199
if not cscope_warned:
@@ -857,7 +857,6 @@ def esc(s):
857857
# re.escape(n))
858858
return s
859859

860-
861860
if isinstance(g, graphviz.Digraph):
862861
g.save(dot)
863862
print(dot)
@@ -991,6 +990,7 @@ def remove_couples(dg):
991990

992991

993992
def cflow_dir(a):
993+
# generates dot files with cflow for c files
994994
index = nx.DiGraph()
995995
for c in glob.glob(os.path.join(a, "*.c")):
996996
g = None
@@ -1040,6 +1040,7 @@ def cflow_linux():
10401040
# all = nx.DiGraph(read_dot('all.dot'))
10411041
except FileNotFoundError:
10421042
pass
1043+
log(all)
10431044
if not all:
10441045
all = nx.DiGraph()
10451046
for a in dirs:
@@ -1109,7 +1110,7 @@ def stats(graph):
11091110

11101111

11111112
def dot_expand(a, b):
1112-
# combine graphs
1113+
# nodes from a with edges from b
11131114
a = to_dg(a)
11141115
b = to_dg(b)
11151116
c = my_graph()
@@ -1142,7 +1143,7 @@ def import_symbols():
11421143
def dir_tree(path='.'):
11431144
'''
11441145
scans directory into graph
1145-
Ex2: \"write_dot(dir_tree('.'),'tree.dot')\"
1146+
Ex2: "write_dot(dir_tree('.'),'tree.dot')"
11461147
'''
11471148
stack = list()
11481149
nprev = -1

0 commit comments

Comments
 (0)