MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / resolve_calls

Function resolve_calls

tools/WCS.py:224–233  ·  view source on GitHub ↗
(fxn_dict2)

Source from the content-addressed store, hash-verified

222
223def resolve_all_calls(call_graph):
224 def resolve_calls(fxn_dict2):
225 fxn_dict2['r_calls'] = []
226 fxn_dict2['unresolved_calls'] = set()
227
228 for call in fxn_dict2['calls']:
229 call_dict = find_fxn(fxn_dict2['tu'], call, call_graph)
230 if call_dict:
231 fxn_dict2['r_calls'].append(call_dict)
232 else:
233 fxn_dict2['unresolved_calls'].add(call)
234
235 # Loop through every global and local function
236 # and resolve each call, save results in r_calls

Callers 1

resolve_all_callsFunction · 0.85

Calls 2

find_fxnFunction · 0.85
setFunction · 0.50

Tested by

no test coverage detected