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

Function find_fxn

tools/WCS.py:84–99  ·  view source on GitHub ↗

Looks up the dictionary associated with the function. :param tu: The translation unit in which to look for locals functions :param fxn: The function name :param call_graph: a object used to store information about each function :return: the dictionary for the given function or N

(tu, fxn, call_graph)

Source from the content-addressed store, hash-verified

82
83
84def find_fxn(tu, fxn, call_graph):
85 """
86 Looks up the dictionary associated with the function.
87 :param tu: The translation unit in which to look for locals functions
88 :param fxn: The function name
89 :param call_graph: a object used to store information about each function
90 :return: the dictionary for the given function or None
91 """
92
93 if fxn in call_graph['globals']:
94 return call_graph['globals'][fxn]
95 else:
96 try:
97 return call_graph['locals'][fxn][tu]
98 except KeyError:
99 return None
100
101
102def find_demangled_fxn(tu, fxn, call_graph):

Callers 2

read_rtlFunction · 0.85
resolve_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected