cpython/Tools/c-analyzer/c_parser
Serhiy Storchaka 1f777396f5
gh-122943: Rework support of var-positional parameter in Argument Clinic (GH-122945)
Move creation of a tuple for var-positional parameter out of
_PyArg_UnpackKeywordsWithVararg().
Merge _PyArg_UnpackKeywordsWithVararg() with _PyArg_UnpackKeywords().
Add a new parameter in _PyArg_UnpackKeywords().

The "parameters" and "converters" attributes of ParseArgsCodeGen no
longer contain the var-positional parameter. It is now available as the
"varpos" attribute. Optimize code generation for var-positional
parameter and reuse the same generating code for functions with and without
keyword parameters.

Add special converters for var-positional parameter. "tuple" represents it as
a Python tuple and "array" represents it as a continuous array of PyObject*.
"object" is a temporary alias of "tuple".
2024-11-07 23:40:03 +02:00
..
parser gh-122943: Rework support of var-positional parameter in Argument Clinic (GH-122945) 2024-11-07 23:40:03 +02:00
preprocessor Fix typos (#123775) 2024-09-09 14:58:26 +02:00
__init__.py gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00
__main__.py gh-102033: Fix syntax error in `Tools/c-analyzer` (GH-102066) 2023-03-22 07:59:32 -07:00
datafiles.py bpo-36876: [c-analyzer tool] Tighten up the results and output. (GH-23431) 2020-11-20 15:39:28 -07:00
info.py Fix a typo in c-analyzer (#109213) 2023-09-18 00:27:54 -07:00
match.py bpo-36876: Small adjustments to the C-analyzer tool. (GH-23045) 2020-10-30 15:46:52 -06:00
source.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00