cpython/Tools/c-analyzer/c_parser/parser
Serhiy Storchaka 99e2c5eccd
gh-144545: Improve handling of default values in Argument Clinic (GH-146016)
* Add the c_init_default attribute which is used to initialize the C variable
  if the default is not explicitly provided.
* Add the c_default_init() method which is used to derive c_default from
  default if c_default is not explicitly provided.
* Explicit c_default and py_default are now almost always have precedence
  over the generated value.
* Add support for bytes literals as default values.
* Improve support for str literals as default values (support non-ASCII
  and non-printable characters and special characters like backslash or quotes).
* Fix support for str and bytes literals containing trigraphs, "/*" and "*/".
* Improve support for default values in converters "char" and "int(accept={str})".
* Converter "int(accept={str})" now requires 1-character string instead of
  integer as default value.
* Add support for non-None default values in converter "Py_buffer": NULL,
  str and bytes literals.
* Improve error handling for invalid default values.
* Rename Null to NullType for consistency.
2026-03-17 12:16:35 +02:00
..
__init__.py gh-144545: Improve handling of default values in Argument Clinic (GH-146016) 2026-03-17 12:16:35 +02:00
_common.py gh-90110: Fix the c-analyzer Tool (#102483) 2023-03-06 19:40:09 -07:00
_compound_decl_body.py gh-81057: Get the c-analyzer tool working again. (gh-92246) 2022-05-03 13:18:27 -06:00
_func_body.py gh-90110: Fix the c-analyzer Tool (#102483) 2023-03-06 19:40:09 -07:00
_global.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_info.py gh-133158: Adjust c-analyzer max_sizes for typeobject.c (GH-133159) 2025-09-02 13:34:22 +00:00
_regexes.py gh-61103: Support double complex (_Complex) type in ctypes (#120894) 2024-07-01 10:54:33 +02:00