Skip to content

Commit 77bab59

Browse files
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
1 parent 06e1701 commit 77bab59

File tree

4 files changed

+2364
-2010
lines changed

4 files changed

+2364
-2010
lines changed

Diff for: Tools/c-analyzer/cpython/_analyzer.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
_DATA_DIR = os.path.dirname(__file__)
3333
KNOWN_FILE = os.path.join(_DATA_DIR, 'known.tsv')
3434
IGNORED_FILE = os.path.join(_DATA_DIR, 'ignored.tsv')
35+
NEED_FIX_FILE = os.path.join(_DATA_DIR, 'globals-to-fix.tsv')
3536
KNOWN_IN_DOT_C = {
3637
'struct _odictobject': False,
3738
'PyTupleObject': False,
@@ -85,6 +86,7 @@ def write_known():
8586
def read_ignored():
8687
if not _IGNORED:
8788
_IGNORED.update(_datafiles.read_ignored(IGNORED_FILE, relroot=REPO_ROOT))
89+
_IGNORED.update(_datafiles.read_ignored(NEED_FIX_FILE, relroot=REPO_ROOT))
8890
return dict(_IGNORED)
8991

9092

0 commit comments

Comments
 (0)