Make semiwrap autogenerated naming conventions configurable#317
Merged
Conversation
auscompgeek
reviewed
Jun 18, 2026
virtuald
force-pushed
the
custom-case
branch
4 times, most recently
from
June 19, 2026 13:13
08d292e to
304731f
Compare
virtuald
force-pushed
the
custom-case
branch
3 times, most recently
from
June 28, 2026 20:35
a1923b3 to
3632a77
Compare
- Add built-in none, default, camelCase, snake_case, PascalCase, and CAPS_CASE transforms - Support custom transforms loaded from importable callables - Add per-kind config resolution and merge helpers for layered settings - Cover transform parsing, caching, custom callbacks, and merge behavior
- Accept name_transform in pyproject and autowrap YAML config - Pass inherited settings through makeplan and header2dat with per-kind CLI flags - Use kind-specific transforms for functions, methods, attributes, and enum values - Preserve explicit renames and transform enum values after prefix stripping - Add parser and fixture coverage for config precedence and generated names
- Add a standalone C++ fixture that uses pyproject-level per-kind transforms - Install the fixture with the C++ test projects - Assert the generated Python API exposes transformed functions, methods, attributes, and enum values
Closed
Member
Author
|
@auscompgeek if you could take one last look at this, it should be ready to go now |
auscompgeek
reviewed
Jul 5, 2026
auscompgeek
left a comment
Member
There was a problem hiding this comment.
Just one comment, but otherwise looks reasonable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently semiwrap only transforms functions/methods, but this will transform functions/methods and attributes and enum values. It seems like the right thing to do here?