-
Notifications
You must be signed in to change notification settings - Fork 321
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
enum: Add an option to generate copy-assignments. #434
Merged
Conversation
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
And recommend its usage if copy-constructors are being generated, as otherwise C++ in its whole glory would do a bitwise copy, which is not really what you want if you have constructors / destructors around.
bors bot
added a commit
to jjs-dev/jjs
that referenced
this pull request
Dec 23, 2019
157: Bump cbindgen from 0.11.1 to 0.12.0 r=MikailBag a=dependabot-preview[bot] Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.11.1 to 0.12.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/eqrion/cbindgen/blob/master/CHANGES">cbindgen's changelog</a>.</em></p> <blockquote> <h2>0.12.0</h2> <pre><code> * Added support for #[repr(align)] and #[repr(packed)] on structs and unions. mozilla/cbindgen#431 * Added support to generate copy-assignment operators for enums. mozilla/cbindgen#434 </code></pre> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/eqrion/cbindgen/commit/38fda6b7785a09721d45ed723b14b118b46ae711"><code>38fda6b</code></a> v0.12.0</li> <li><a href="https://github.com/eqrion/cbindgen/commit/48f1038918b7c34bef291fb8136ce88493bbc48d"><code>48f1038</code></a> enum: Add an option to generate copy-assignments.</li> <li><a href="https://github.com/eqrion/cbindgen/commit/2b2ab904cc13a65b73e52d84541f3181f7eea858"><code>2b2ab90</code></a> docs: add documentation for new alignment config knobs</li> <li><a href="https://github.com/eqrion/cbindgen/commit/f23d4ee6e8cf834deb2ef503cccb9da80b789c45"><code>f23d4ee</code></a> tests: add tests for #[repr(packed)] and #[repr(align(...))]</li> <li><a href="https://github.com/eqrion/cbindgen/commit/725378d4199f766b5ecfe692176ce0016ea1cc58"><code>725378d</code></a> {struct,union}: do not generate unsafe layouts</li> <li><a href="https://github.com/eqrion/cbindgen/commit/b95df2bd2bdc309ff3347a4ff1be2cfb38f03d7c"><code>b95df2b</code></a> ir: union: support #[repr(align(...))] and #[repr(packed)]</li> <li><a href="https://github.com/eqrion/cbindgen/commit/89781e204bdcf52e4eadba30b00009c615fc4fe3"><code>89781e2</code></a> ir: struct: support #[repr(align(...))] and #[repr(packed)]</li> <li><a href="https://github.com/eqrion/cbindgen/commit/377d93ec888576b51c6ff321ef7fa85a0d15a82d"><code>377d93e</code></a> ir: repr: support #[repr(align(...))] and #[repr(packed)] parsing</li> <li><a href="https://github.com/eqrion/cbindgen/commit/19e685c87f4ff966da06ef144f955923a8a69f85"><code>19e685c</code></a> ir: {enum,struct,union}: check ReprStyle correctly</li> <li>See full diff in <a href="https://github.com/eqrion/cbindgen/compare/v0.11.1...v0.12.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=cbindgen&package-manager=cargo&previous-version=0.11.1&new-version=0.12.0)](https://dependabot.com/compatibility-score.html?dependency-name=cbindgen&package-manager=cargo&previous-version=0.11.1&new-version=0.12.0) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Jan 9, 2020
Changelog: 0.12.1 * Added support for #[repr*64)] on enums. mozilla/cbindgen#441 * Added support to generate plain enums instead of enum classes for C++. mozilla/cbindgen#443 * Fixed dependency resolution with lockfile v2. mozilla/cbindgen#438 0.12.0 * Added support for #[repr(align)] and #[repr(packed)] on structs and unions. mozilla/cbindgen#431 * Added support to generate copy-assignment operators for enums. mozilla/cbindgen#434 0.11.1 Not available 0.11.0 * Made rust char map to uint32_t. mozilla/cbindgen#424
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Jan 14, 2020
Changelog: 0.12.1 * Added support for #[repr*64)] on enums. mozilla/cbindgen#441 * Added support to generate plain enums instead of enum classes for C++. mozilla/cbindgen#443 * Fixed dependency resolution with lockfile v2. mozilla/cbindgen#438 0.12.0 * Added support for #[repr(align)] and #[repr(packed)] on structs and unions. mozilla/cbindgen#431 * Added support to generate copy-assignment operators for enums. mozilla/cbindgen#434 0.11.1 Not available 0.11.0 * Made rust char map to uint32_t. mozilla/cbindgen#424
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.
And recommend its usage if copy-constructors are being generated, as otherwise
C++ in its whole glory would do a bitwise copy, which is not really what you
want if you have constructors / destructors around.