mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-90110: Fix the c-analyzer Tool (#102483)
Some incompatible changes had gone in, and the "ignore" lists weren't properly undated. This change fixes that. It's necessary prior to enabling test_check_c_globals, which I hope to do soon. Note that this does include moving last_resort_memory_error to PyInterpreterState. https://github.com/python/cpython/issues/90110
This commit is contained in:
parent
f9cdeb7b99
commit
8606697f49
11 changed files with 86 additions and 35 deletions
|
@ -29,7 +29,7 @@ COMPILER_DIRECTIVE_RE = re.compile(r'''
|
|||
[^()]*
|
||||
)*
|
||||
) # <args>
|
||||
( [)] [)] )? # <closed>
|
||||
( [)] [)] ) # <closed>
|
||||
''', re.VERBOSE)
|
||||
|
||||
POST_ARGS = (
|
||||
|
@ -156,6 +156,7 @@ def _iter_top_include_lines(lines, topfile, cwd,
|
|||
if name != 'pragma':
|
||||
raise Exception(line)
|
||||
else:
|
||||
line = re.sub(r'__inline__', 'inline', line)
|
||||
if not raw:
|
||||
line, partial = _strip_directives(line, partial=partial)
|
||||
yield _common.SourceLine(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue