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:
Eric Snow 2022-02-08 18:37:57 -07:00 committed by GitHub
parent 06e1701ad3
commit 77bab59c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2384 additions and 2030 deletions

View file

@ -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)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff