mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
bpo-36876: Update the c-analyzer whitelist. (gh-31225)
This change adds variables that had been added since the last time the whitelist was updated. It also cleans up the list a little. https://bugs.python.org/issue36876
This commit is contained in:
parent
06e1701ad3
commit
77bab59c8a
4 changed files with 2384 additions and 2030 deletions
|
|
@ -32,6 +32,7 @@ from . import _parser, REPO_ROOT
|
|||
_DATA_DIR = os.path.dirname(__file__)
|
||||
KNOWN_FILE = os.path.join(_DATA_DIR, 'known.tsv')
|
||||
IGNORED_FILE = os.path.join(_DATA_DIR, 'ignored.tsv')
|
||||
NEED_FIX_FILE = os.path.join(_DATA_DIR, 'globals-to-fix.tsv')
|
||||
KNOWN_IN_DOT_C = {
|
||||
'struct _odictobject': False,
|
||||
'PyTupleObject': False,
|
||||
|
|
@ -85,6 +86,7 @@ def write_known():
|
|||
def read_ignored():
|
||||
if not _IGNORED:
|
||||
_IGNORED.update(_datafiles.read_ignored(IGNORED_FILE, relroot=REPO_ROOT))
|
||||
_IGNORED.update(_datafiles.read_ignored(NEED_FIX_FILE, relroot=REPO_ROOT))
|
||||
return dict(_IGNORED)
|
||||
|
||||
|
||||
|
|
|
|||
1646
Tools/c-analyzer/cpython/globals-to-fix.tsv
Normal file
1646
Tools/c-analyzer/cpython/globals-to-fix.tsv
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue