Skip to content

Commit 215007b

Browse files
authored
Exclude ceval.c from the C-analyzer tool (#102735)
The "check if generated files are up to date" CI check appears to be currently failing on all PRs (but not on pushes to main) See, for example: - #94468 - #94468 - #102731 This appears to be because the C-analyzer tool doesn't like the `#line` directives introduced in 70185de. I'm advised by the message printed to the terminal in https://github.com/python/cpython/actions/runs/4428706945/jobs/7768216988#step:14:84 that this is the appropriate short-term fix!
1 parent 70185de commit 215007b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tools/c-analyzer/cpython/_parser.py

+5
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,15 @@ def clean_lines(text):
9191
# XXX Fix the parser.
9292
EXCLUDED += clean_lines('''
9393
# The tool should be able to parse these...
94+
9495
# The problem with xmlparse.c is that something
9596
# has gone wrong where # we handle "maybe inline actual"
9697
# in Tools/c-analyzer/c_parser/parser/_global.py.
9798
Modules/expat/xmlparse.c
99+
100+
# The parser doesn't like the #line directives
101+
# that originate from generated_cases.c.h
102+
Python/ceval.c
98103
''')
99104

100105
INCL_DIRS = clean_lines('''

0 commit comments

Comments
 (0)