Skip to content

Commit 26578a0

Browse files
Fix c-analyzer.
1 parent de802b7 commit 26578a0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/c-analyzer/c_parser/parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _iter_source(lines, *, maxtext=11_000, maxlines=200, showtext=False):
219219
msg = f'''
220220
too much text, try to increase MAX_SIZES[MAXTEXT] in cpython/_parser.py
221221
{filename} starting at line {lno_from} to {lno_to}
222-
has code with length {len(text)} greater than {maxtext}:
222+
has code with length {len(srcinfo.text)} greater than {maxtext}:
223223
{text}
224224
'''
225225
raise RuntimeError(textwrap.dedent(msg))

Tools/c-analyzer/cpython/_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ def format_tsv_lines(lines):
344344
_abs('Modules/_ssl_data_300.h'): (80_000, 10_000),
345345
_abs('Modules/_ssl_data_111.h'): (80_000, 10_000),
346346
_abs('Modules/cjkcodecs/mappings_*.h'): (160_000, 2_000),
347+
_abs('Modules/clinic/_testclinic.c.h'): (120_000, 5_000),
347348
_abs('Modules/unicodedata_db.h'): (180_000, 3_000),
348349
_abs('Modules/unicodename_db.h'): (1_200_000, 15_000),
349350
_abs('Objects/unicodetype_db.h'): (240_000, 3_000),

0 commit comments

Comments
 (0)