forked from KDAB/cxx-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature naming on properties (KDAB#1072)
* Switch ParsedQProperty to use Name instead of Ident, and allow cxx_name and rust_name in flags - Add closure to group behaviour of flags requiring a value passed * Add parsing checks for name flags - using cxx_name or rust_name is allowed without READ flag - Maintains error for using property flags e.g. WRITE without including READ - cxx_name and rust_name must have strings as values, whereas other flags still need idents * Add naming to a property in test_inputs - Also refactor value assignment in parse_meta_name_value - Refactor cxx_name so that having no cxx_name requires no rust_name to do camelcase conversion * Add new Name method to combine common logic - Applies options with the correct renaming logic, and this is used in property renaming - Also switch from format_ident to a propagating syn::parse_string instead * Update changelog and book * Add to example and refactor auto_camel in name function
- Loading branch information
1 parent
4da68f5
commit 4b23a7b
Showing
19 changed files
with
614 additions
and
195 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.