-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Generate impl
blocks for associated enum functions
#991
Commits on Dec 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for bfb0a2d - Browse repository at this point
Copy the full SHA bfb0a2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a639364 - Browse repository at this point
Copy the full SHA a639364View commit details -
env: Remove unnecessary
if
from main_sys_crate_nameThis function always returns the value from sys_crate_name.
Configuration menu - View commit details
-
Copy full SHA for e54e73f - Browse repository at this point
Copy the full SHA e54e73fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18d4a54 - Browse repository at this point
Copy the full SHA 18d4a54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68e4c73 - Browse repository at this point
Copy the full SHA 68e4c73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f554d7 - Browse repository at this point
Copy the full SHA 0f554d7View commit details -
Remove unnecessary main_sys_crate_name imports
`crate::ffi`, which these calls resolve to are ignored in Imports::common_checks, no need to pass these explicitly.
Configuration menu - View commit details
-
Copy full SHA for 354c580 - Browse repository at this point
Copy the full SHA 354c580View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef8c22b - Browse repository at this point
Copy the full SHA ef8c22bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bc5f6e - Browse repository at this point
Copy the full SHA 9bc5f6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 841582f - Browse repository at this point
Copy the full SHA 841582fView commit details -
imports: Add support for multiple, lazily added declared symbols
This is used in enum function generation where all enum types asssociated with a given crate are defined in the same file.
Configuration menu - View commit details
-
Copy full SHA for 6e89f56 - Browse repository at this point
Copy the full SHA 6e89f56View commit details -
enums: Move rejection and glib imports from codegen to analysis
This not only cleans up unnecessary mutable variables in the codegen loop and a cloned Imports instance (so that it can remain immutable during codegen), it also adds the missing rejection logic to enum analysis. No harm was caused because these checks happened at codegen prior, but they omit some unnecessary imports.
Configuration menu - View commit details
-
Copy full SHA for 50cee9e - Browse repository at this point
Copy the full SHA 50cee9eView commit details -
codegen/enums: Add missing trait_impls::generate call
This function is responsible for generating a Display impl, and caused unused std::fmt import previously.
Configuration menu - View commit details
-
Copy full SHA for 70eab37 - Browse repository at this point
Copy the full SHA 70eab37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3023445 - Browse repository at this point
Copy the full SHA 3023445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7123280 - Browse repository at this point
Copy the full SHA 7123280View commit details
Commits on Dec 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c3e827f - Browse repository at this point
Copy the full SHA c3e827fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37366a2 - Browse repository at this point
Copy the full SHA 37366a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a43595 - Browse repository at this point
Copy the full SHA 6a43595View commit details -
Configuration menu - View commit details
-
Copy full SHA for e549975 - Browse repository at this point
Copy the full SHA e549975View commit details -
codegen/flags: Add missing display trait generation
Analysis was copied from enums which adds an std::fmt when generate_display_trait is true, but the codegen for it was missing. Instead of removing the import, provide a simple Display trait that forwards to bitflags' Debug implementation.
Configuration menu - View commit details
-
Copy full SHA for 518d277 - Browse repository at this point
Copy the full SHA 518d277View commit details -
codegen: Don't emit Rust Display impl when C function is available
When get_name or to_string is available and adheres to the right conditions a Display impl leveraging this C implementation is generated. This will clash with a pure Rust impl if generate_display_trait is true which should be disabled to prefer the C function call instead.
Configuration menu - View commit details
-
Copy full SHA for 68760c0 - Browse repository at this point
Copy the full SHA 68760c0View commit details -
special_functions: Add version condition to imports as well
Complements: 5ce31f2 ("codegen: Add version condition on special function traits")
Configuration menu - View commit details
-
Copy full SHA for a1cfe65 - Browse repository at this point
Copy the full SHA a1cfe65View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf7dd09 - Browse repository at this point
Copy the full SHA bf7dd09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18c12a5 - Browse repository at this point
Copy the full SHA 18c12a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b32e69 - Browse repository at this point
Copy the full SHA 5b32e69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2915bde - Browse repository at this point
Copy the full SHA 2915bdeView commit details