Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-113317: Add Codegen class to Argument Clinic #117626

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 8, 2024

  • Move ifndef_symbols, includes and add_include() from Clinic to Codegen. Add a 'codegen' (Codegen) attribute to Clinic.
  • Remove libclinic.crenderdata module: move code to libclinic.codegen.
  • BlockPrinter.print_block(): remove unused 'limited_capi' argument. Remove also 'core_includes' parameter.

* Move ifndef_symbols, includes and add_include() from Clinic to
  Codegen. Add a 'codegen' (Codegen) attribute to Clinic.
* Remove libclinic.crenderdata module: move code to libclinic.codegen.
* BlockPrinter.print_block(): remove unused 'limited_capi' argument.
  Remove also 'core_includes' parameter.
@erlend-aasland
Copy link
Contributor

Overall, I like this refactoring.

* Make Codegen.ifndef_symbols private.
* Make Codegen.includes private.
* Make CConverter.includes private.
@vstinner
Copy link
Member Author

vstinner commented Apr 9, 2024

@erlend-aasland: I updated the PR.

@vstinner vstinner merged commit a2ae847 into python:main Apr 11, 2024
40 checks passed
@vstinner vstinner deleted the clinic_codegen branch April 11, 2024 10:15
@vstinner
Copy link
Member Author

Merged, thanks for the review.

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
* Move ifndef_symbols, includes and add_include() from Clinic to
  Codegen. Add a 'codegen' (Codegen) attribute to Clinic.
* Remove libclinic.crenderdata module: move code to libclinic.codegen.
* BlockPrinter.print_block(): remove unused 'limited_capi' argument.
  Remove also 'core_includes' parameter.
* Add get_includes() methods.
* Make Codegen.ifndef_symbols private.
* Make Codegen.includes private.
* Make CConverter.includes private.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants