MCPcopy Create free account
hub / github.com/Persper/code-analytics / update_call_graph_c

Function update_call_graph_c

persper/graphs/call_graph/c.py:128–137  ·  view source on GitHub ↗
(G, roots, modified_func)

Source from the content-addressed store, hash-verified

126
127
128def update_call_graph_c(G, roots, modified_func):
129 for func_name in modified_func:
130 if func_name in G:
131 remove_edges_of_node(G, func_name, in_edges=False)
132 G.node[func_name]['num_lines'] += modified_func[func_name]
133
134 # here roots should be constructed from the more recent commit
135 # new functions and their sizes are stored in new_func dictionary
136 _, new_func, _ = build_call_graph_c(roots, G)
137 return new_func
138
139
140def get_func_ranges_c(root):

Callers 2

update_graphMethod · 0.90
_first_phaseMethod · 0.90

Calls 2

remove_edges_of_nodeFunction · 0.90
build_call_graph_cFunction · 0.85

Tested by

no test coverage detected