summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/c_parser/preprocessor/pure.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-09-12 17:09:31 (GMT)
committerGitHub <noreply@github.com>2022-09-12 17:09:31 (GMT)
commit1756ffd66a38755cd45de51316d66266ae30e132 (patch)
treece0d37b6c3c793e20c05b5d4030c7869968579e0 /Tools/c-analyzer/c_parser/preprocessor/pure.py
parent662782e95f97d26bd57b3edc6aaf674e30899f44 (diff)
downloadcpython-1756ffd66a38755cd45de51316d66266ae30e132.zip
cpython-1756ffd66a38755cd45de51316d66266ae30e132.tar.gz
cpython-1756ffd66a38755cd45de51316d66266ae30e132.tar.bz2
gh-90110: Fix the c-analyzer Tool (gh-96731)
This includes: * update the whitelists * fixes so we can stop ignoring some of the files * ensure Include/cpython/*.h get analyzed
Diffstat (limited to 'Tools/c-analyzer/c_parser/preprocessor/pure.py')
-rw-r--r--Tools/c-analyzer/c_parser/preprocessor/pure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/c-analyzer/c_parser/preprocessor/pure.py b/Tools/c-analyzer/c_parser/preprocessor/pure.py
index e971389..f94447a 100644
--- a/Tools/c-analyzer/c_parser/preprocessor/pure.py
+++ b/Tools/c-analyzer/c_parser/preprocessor/pure.py
@@ -4,7 +4,7 @@ from ..source import (
from . import common as _common
-def preprocess(lines, filename=None):
+def preprocess(lines, filename=None, cwd=None):
if isinstance(lines, str):
with _open_source(lines, filename) as (lines, filename):
yield from preprocess(lines, filename)