Make semiwrap autogenerated naming conventions configurable#317
Open
virtuald wants to merge 7 commits into
Open
Make semiwrap autogenerated naming conventions configurable#317virtuald wants to merge 7 commits into
virtuald wants to merge 7 commits into
Conversation
auscompgeek
reviewed
Jun 18, 2026
08d292e to
304731f
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
- Document built-in transform names and custom transform callbacks - Show string and per-kind mapping examples for pyproject and YAML config - Explain config precedence, prefix stripping, explicit renames, and enum value handling
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?