mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
bpo-36876: Small adjustments to the C-analyzer tool. (GH-23045)
This is a little bit of clean-up, small fixes, and additional helpers prior to building an updated & accurate list of globals to eliminate.
This commit is contained in:
parent
b9ee4af4c6
commit
4fe72090de
16 changed files with 632 additions and 217 deletions
|
@ -1,5 +1,6 @@
|
|||
import c_common.tables as _tables
|
||||
import c_parser.info as _info
|
||||
import c_parser.match as _match
|
||||
import c_parser.datafiles as _parser
|
||||
from . import analyze as _analyze
|
||||
|
||||
|
@ -17,7 +18,7 @@ def analyze_known(known, *,
|
|||
handle_unresolved=True,
|
||||
):
|
||||
knowntypes = knowntypespecs = {}
|
||||
collated = _info.collate_by_kind_group(known)
|
||||
collated = _match.group_by_kinds(known)
|
||||
types = {decl: None for decl in collated['type']}
|
||||
typespecs = _analyze.get_typespecs(types)
|
||||
def analyze_decl(decl):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue