summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-15ir: Make the workaround for LLVM bug 9069 more reliable.Emilio Cobos Álvarez
Should fix https://github.com/zzeroo/libmodbus-rs/issues/4
2017-06-14Auto merge of #748 - fitzgen:rust-dev-tools-contributing-checklist, r=emiliobors-servo
Going through the rust dev tools contributing checklist Filling in some obvious gaps from https://github.com/nrc/dev-tools-team/blob/master/contribution/checklist.md r? @emilio cc @rust-lang/dev-tools : would anyone like to review our CONTRIBUTING.md file in general? (and our contribution workflow?) (and probably outside of this PR)
2017-06-14Add some information about PRs and review to CONTRIBUTING.mdNick Fitzgerald
2017-06-14Link to easy and less easy issues, also help-me-find-something issue in ↵Nick Fitzgerald
CONTRIBUTING.md
2017-06-14Fix typo in CONTRIBUTING.mdNick Fitzgerald
2017-06-14Auto merge of #746 - emilio:bump-version, r=fitzgenbors-servo
Bump version number.
2017-06-14Bump version number.Emilio Cobos Álvarez
2017-06-14Add typedef/namespace tests for module const enumTravis Finkenauer
2017-06-12Auto merge of #742 - emilio:bitfields-revamp, r=fitzgenbors-servo
ir: Prevent integer overflow when using word-size bitfields.
2017-06-11Convert comment to a doc commentTravis Finkenauer
2017-06-11Adds `--constified-enum-module` option per #699Travis Finkenauer
2017-06-10Auto merge of #737 - jamesmunns:using-unions, r=fitzgenbors-servo
Add union tutorial Here is a first addition to describe usage of unions. Please let me know if there are any changes you would like, or additional features to cover. For now, I have described both ways to interact with unions, as the new union type has not stabilized.
2017-06-10ir: Prevent integer overflow when using word-size bitfields.Emilio Cobos Álvarez
Fixes #739
2017-06-05Ignore rust snippets, and add section referencing CLI args and library methodsJames Munns
2017-06-05Add union tutorialJames Munns
2017-06-05Auto merge of #736 - emilio:bitfields-revamp, r=fitzgenbors-servo
ir: Fix a bunch of bitfield correctness issues. In particular, the "flush the allocation unit" logic is only valid for ms_structs (that is, MSVC). It's slightly annoying to have this different behavior, but it'd work just fine if we'd turn that on for MSVC. This patch doesn't do that, yet at least, and adds tests for all the weird bitfield alignments around. Fixes #726 (and another set of hidden issues by the old code).
2017-06-05ir: Fix a bunch of bitfield correctness issues.Emilio Cobos Álvarez
In particular, the "flush the allocation unit" logic is only valid for ms_structs (that is, MSVC). It's slightly annoying to have this different behavior, but it'd work just fine if we'd turn that on for MSVC. This patch doesn't do that, yet at least, and adds tests for all the weird bitfield alignments around. Fixes #726 (and another set of hidden issues by the old code).
2017-06-05Auto merge of #733 - SirVer:patch-1, r=fitzgenbors-servo
Cargo picks up on build.rs without being told now.
2017-06-03Cargo picks up on build.rs without being told now.Holger Rapp
2017-06-02Auto merge of #731 - emilio:cargo-orig, r=fitzgenbors-servo
Prevent cargo from packaging orig files. None
2017-06-02Prevent cargo from packaging orig files.Emilio Cobos Álvarez
2017-06-02Auto merge of #729 - emilio:mangling-hack, r=fitzgenbors-servo
ir: Use the mangling hack in win32 too.
2017-06-02ir: Give a better error message for unknown ABI.Emilio Cobos Álvarez
Fixes #727
2017-06-01ir: Use the mangling hack in win32 too.Emilio Cobos Álvarez
Fixes #593 Fixes #728
2017-06-01Add a way to get the target triple, and do our best guess at it until we ↵Emilio Cobos Álvarez
have proper clang support.
2017-05-27Auto merge of #724 - emilio:mangling-panic, r=upsuperv0.25.3bors-servo
Minor version bump.
2017-05-27Minor version bump.Emilio Cobos Álvarez
2017-05-26Auto merge of #722 - emilio:mangling-panic, r=fitzgenbors-servo
ir: Don't panic when finding an unknown calling convention until code generation This unblocks stylo in windows until we get `__thiscall` support in syntex. see #541.
2017-05-26ir: Don't panic when finding an unknown calling convention until code ↵Emilio Cobos Álvarez
generation.
2017-05-25Auto merge of #721 - fitzgen:bump-to-0.25.2, r=emiliobors-servo
Bump to version 0.25.2 Need to publish a new version so I can rely on the MacOS mangling fix for my smup branch. r? @emilio
2017-05-25Bump to version 0.25.2Nick Fitzgerald
2017-05-25Auto merge of #720 - fitzgen:testing-libclang-versions, r=emiliobors-servo
Gate on libclang 4 CI passing :) Need those test expectation diffs across libclang versions from Travis CI...
2017-05-25Allow asserting expectations across different libclang versionsNick Fitzgerald
Rather than having a tests that we only run if libclang >= 3.9, this makes the test suite dynamically detect when we have different expectations for different libclang versions. It does this by adding `tests/expectations/tests/libclang-$VERSION` directories, and `testing_only_libclang_$VERSION` features that are consulted when the usual expectation file does not exist. Fixes #697
2017-05-25Auto merge of #719 - fitzgen:testing-stuff, r=emiliobors-servo
Only run call-conv-field.h test on linux This is a temporary work around for issue #593 and this test failing on MacOS because we don't currently handle when the bindgen executable's target OS is not the same as the emitted bindings' target OS. r? @emilio
2017-05-24Always ignore style lints in test bindingsNick Fitzgerald
2017-05-24Improve test pragma parsingNick Fitzgerald
We should take any number of `// bindgen-$whatever` flags at the top of the file. Only considering the first three lines of the file was confusing when I tried adding new pragmas with an empty line between the new ones and old ones.
2017-05-24Only run call-conv-field.h test on linuxNick Fitzgerald
This is a temporary work around for issue #593 and this test failing on MacOS because we don't currently handle when bindgen's target OS is not the same as the emitted bindings' target OS.
2017-05-24Auto merge of #718 - photoszzt:fix_bitfield_constructor_const, r=emiliobors-servo
Fix bitfield generation bug with const function Const function can't have variables or blocks. r? @fitzgen
2017-05-24Fix bitfield generation bug with const functionzzhu
Const function can't have variables or blocks.
2017-05-24Auto merge of #717 - photoszzt:fix_osx_mangling, r=emiliobors-servo
Fix osx mangling hack Rust automatically adds one _ in the symbol. If we don't remove it, we will endup getting three _. r? @emilio
2017-05-24Fix osx mangling hackzzhu
Rust automatically adds one _ in the symbol. If we don't remove it, we will endup getting three _.
2017-05-22Auto merge of #712 - emilio:gcc-enums, r=fitzgenbors-servo
Add a test for short enums. Closes #711.
2017-05-21Add a test for short enums.Emilio Cobos Álvarez
Closes #711.
2017-05-20Auto merge of #709 - emilio:fix-stylo-openbsd, r=fitzgenv0.25.1bors-servo
Minor version bump to peek up clang-sys updates in stylo. This should fix https://bugzilla.mozilla.org/show_bug.cgi?id=1365488 There aren't any breaking changes since 0.25, only new features and fixes for libclang >3.9
2017-05-20Minor version bump to peek up clang-sys updates in stylo.Emilio Cobos Álvarez
This should fix https://bugzilla.mozilla.org/show_bug.cgi?id=1365488
2017-05-19Auto merge of #708 - emilio:template-inst-noise, r=fitzgenbors-servo
codegen: Reuse the next_child_local_id hack for template instantiations. This should be good enough, following the pattern of anonymous items, and should prevent most of the current noise in stylo updates. Closes #620 Fixes #619
2017-05-20codegen: Reuse the next_child_local_id hack for template instantiations.Emilio Cobos Álvarez
This should be good enough, following the pattern of anonymous items, and should prevent most of the current noise in stylo updates. Closes #620 Fixes #619
2017-05-19Auto merge of #707 - fitzgen:bitfield-constructors, r=emiliobors-servo
Add bitfield allocation unit constructors This commit gives bindgen the ability to generate constructors for bitfield allocation units. This enables more ergonomic use of struct literals for bindings structs that contain bitfields. Additionally, when we are generating unstable Rust, these constructors are marked as const functions. This enables the creation of const binding structs that contain bitfields. (Something necessary for Servo's usage of SpiderMonkey). r? @emilio
2017-05-19Flatten nesting in Bitfield::extend_ctor_implNick Fitzgerald
This commit flattens the nesting in `Bitfield::extend_ctor_impl`, as requested in review, because it was getting pretty deep. Should be easier to read now.
2017-05-19Add bitfield allocation unit constructorsNick Fitzgerald
This commit gives bindgen the ability to generate constructors for bitfield allocation units. This enables more ergonomic use of struct literals for bindings structs that contain bitfields. Additionally, when we are generating unstable Rust, these constructors are marked as const functions. This enables the creation of const binding structs that contain bitfields.