-
Notifications
You must be signed in to change notification settings - Fork 702
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 extern wrappers for inlined functions #2335
Merged
pvdrz
merged 37 commits into
rust-lang:main
from
ferrous-systems:generate-inline-functions
Feb 7, 2023
Merged
Generate extern wrappers for inlined functions #2335
pvdrz
merged 37 commits into
rust-lang:main
from
ferrous-systems:generate-inline-functions
Feb 7, 2023
Commits on Jan 24, 2023
-
Generate extern wrappers for inlined functions
If bindgen finds an inlined function and the `--generate-extern-functions` options is enabled, then: - It will generate two new source and header files with external functions that wrap the inlined functions. - Rerun `Bindings::generate` using the new header file to include these wrappers in the generated bindings. The following additional options were added: - `--extern-function-suffix=<suffix>`: Adds <suffix> to the name of each external wrapper function (`__extern` is used by default). - `--extern-functions-file-name=<name>`: Uses <name> as the file name for the header and source files (`extern` is used by default). - `--extern-function-directory=<dir>`: Creates the source and header files inside <dir> (`/tmp/bindgen` is used by default). The C code serialization is experimental and only supports a very limited set of C functions. Fixes rust-lang#1090.
Configuration menu - View commit details
-
Copy full SHA for afbc4d8 - Browse repository at this point
Copy the full SHA afbc4d8View commit details -
test(static inlined): pretty print the diff Issue: rust-langGH-1090 test(static inlined): refactor paths once again - Because directory structure is confusing to the author of this commit rust-langGH-1090 test(static inlined): refactor test files - Expected files should be under tests/expectations/generated - Remove extern_stub.h because we can reuse the header from generate-extern-functions.h test(static inlined): diff test; generated files refactor(static inlined): integration test Issue: rust-langGH-1090 rust-langGH-1090: Integration tests integration test: document the GH issue integration test (macro): same order in impl as the trait for consistency integration test: move each setup into its own function, just to save face inline static func integration test resolve accidental conflict
Configuration menu - View commit details
-
Copy full SHA for ad0f161 - Browse repository at this point
Copy the full SHA ad0f161View commit details -
Configuration menu - View commit details
-
Copy full SHA for 101cde0 - Browse repository at this point
Copy the full SHA 101cde0View commit details
Commits on Jan 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 61b2b44 - Browse repository at this point
Copy the full SHA 61b2b44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65a80e0 - Browse repository at this point
Copy the full SHA 65a80e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb823b8 - Browse repository at this point
Copy the full SHA eb823b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b0bdcd - Browse repository at this point
Copy the full SHA 8b0bdcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ac21b - Browse repository at this point
Copy the full SHA 39ac21bView commit details
Commits on Jan 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fa47c2b - Browse repository at this point
Copy the full SHA fa47c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e33237b - Browse repository at this point
Copy the full SHA e33237bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d65527f - Browse repository at this point
Copy the full SHA d65527fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c80ed2d - Browse repository at this point
Copy the full SHA c80ed2dView commit details
Commits on Jan 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9ecbde4 - Browse repository at this point
Copy the full SHA 9ecbde4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34278f4 - Browse repository at this point
Copy the full SHA 34278f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb2a3d3 - Browse repository at this point
Copy the full SHA eb2a3d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 595ce78 - Browse repository at this point
Copy the full SHA 595ce78View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb93924 - Browse repository at this point
Copy the full SHA cb93924View commit details -
Configuration menu - View commit details
-
Copy full SHA for e36e088 - Browse repository at this point
Copy the full SHA e36e088View commit details -
Configuration menu - View commit details
-
Copy full SHA for ceebca1 - Browse repository at this point
Copy the full SHA ceebca1View commit details
Commits on Feb 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f7df058 - Browse repository at this point
Copy the full SHA f7df058View commit details -
Configuration menu - View commit details
-
Copy full SHA for c55aa5b - Browse repository at this point
Copy the full SHA c55aa5bView commit details
Commits on Feb 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c12645f - Browse repository at this point
Copy the full SHA c12645fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eb7f69 - Browse repository at this point
Copy the full SHA 3eb7f69View commit details -
Configuration menu - View commit details
-
Copy full SHA for b682c6c - Browse repository at this point
Copy the full SHA b682c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6721b96 - Browse repository at this point
Copy the full SHA 6721b96View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab6ea25 - Browse repository at this point
Copy the full SHA ab6ea25View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc7f6bf - Browse repository at this point
Copy the full SHA bc7f6bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e823b32 - Browse repository at this point
Copy the full SHA e823b32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aafbee - Browse repository at this point
Copy the full SHA 0aafbeeView commit details -
2
Configuration menu - View commit details
-
Copy full SHA for 58f740d - Browse repository at this point
Copy the full SHA 58f740dView commit details -
Configuration menu - View commit details
-
Copy full SHA for affcb2f - Browse repository at this point
Copy the full SHA affcb2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4819ea4 - Browse repository at this point
Copy the full SHA 4819ea4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b8fe72 - Browse repository at this point
Copy the full SHA 7b8fe72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7698c71 - Browse repository at this point
Copy the full SHA 7698c71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9326863 - Browse repository at this point
Copy the full SHA 9326863View commit details
Commits on Feb 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5a9e5ca - Browse repository at this point
Copy the full SHA 5a9e5caView commit details
Commits on Feb 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 572d1a4 - Browse repository at this point
Copy the full SHA 572d1a4View commit details
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.