summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-11Minor cleanup after #1419.v0.42.2Emilio Cobos Álvarez
The previous PR ended up with a lot of just-called-once methods. Just inline them since they're confusing otherwise. Also avoid testing all the variants of an enum if there was a match already, or if the enum is not anonymous. This is mostly a minor optimization.
2018-10-11Auto merge of #1419 - emilio:constified-enum-default, r=emiliobors-servo
ir: Ensure everything agrees in which kind of variation an enum generates. Fixes #1418.
2018-10-11Version bump.Emilio Cobos Álvarez
2018-10-11ir: Ensure everything agrees in which kind of variation an enum generates.Emilio Cobos Álvarez
2018-10-08Auto merge of #1415 - emilio:clang-sys-up, r=emiliov0.42.1bors-servo
Update clang-sys.
2018-10-08Update clang-sys.Emilio Cobos Álvarez
2018-10-07Auto merge of #1413 - emilio:be-tests, r=emiliobors-servo
Skip bitfield unit tests on big-endian platforms. Fixes #1412.
2018-10-07Skip bitfield unit tests on big-endian platforms.Emilio Cobos Álvarez
Fixes #1412.
2018-10-04Auto merge of #1410 - emilio:unbreak-osx-stuff, r=emiliov0.42.0bors-servo
Puts blocks behind a switch. Since #1378 broke a bunch of OSX builds. Most people don't care about them and they're in some OSX system headers which means that this could break normal C and C++ stuff. This introduces --generate-block / generate_block to generate these signatures, and adds tests so that this is getting tested.
2018-10-04Version bump.Emilio Cobos Álvarez
2018-10-04Puts blocks behind a switch.Emilio Cobos Álvarez
Since #1378 broke a bunch of OSX builds. Most people don't care about them and they're in some OSX system headers which means that this could break normal C and C++ stuff. This introduces --generate-block / generate_block to generate these signatures, and adds tests so that this is getting tested.
2018-10-04Auto merge of #1408 - emilio:update-some-crates, r=emiliobors-servo
Update some crates This lands #1390 with some test fixes and a clang-sys update. Part of #1407. Closes #1390.
2018-10-04Update clang-sys.Emilio Cobos Álvarez
2018-10-04Update bogus tests that relied on some sort of quirk revealed by the nom update.Emilio Cobos Álvarez
2018-10-04Update cexpr dependencykpcyrd
2018-10-01ir: Fix tabs in context.rs.Emilio Cobos Álvarez
2018-10-01Auto merge of #1405 - WizardOfArc:ISSUE_1399/add_async_to_rust_mangle, r=emiliobors-servo
adds 'async' to list of matches in 'rust_mangle' r? @emilio I'll need to install `rustfmt` before I do anything more elaborate
2018-10-01adds 'async' to list of matches in 'rust_mangle'Azi Crawford
2018-09-30v0.41.0v0.41.0Emilio Cobos Álvarez
2018-09-30Auto merge of #1404 - auscompgeek:fix-args-are-cpp, r=emiliobors-servo
Fix args_are_cpp to look for -x without = Clang doesn't allow `=` between `-x` and the language name.
2018-09-30Fix args_are_cpp to look for -x without =David Vo
Clang doesn't allow `=` between `-x` and the language name.
2018-09-28Auto merge of #1403 - emilio:call-conv-madness, r=fitzgenbors-servo
A better fix for the calling convention madness. See the commit message for details.
2018-09-26A better fix for the calling convention madness.Emilio Cobos Álvarez
Seems like a better fix, which allows us to preserve typedefs properly, and also to find the calling convention. Fixes #1402.
2018-09-26Better detect effective target.Emilio Cobos Álvarez
I just realized that we don't really check for this but that clang does.
2018-09-25Back out changesjkozlowski
2018-09-25Indicate the anonymous lifetime in Formatter.jkozlowski
2018-09-24Auto merge of #1396 - tathanhdinh:master, r=emiliobors-servo
PartialOrd and Ord for enum Hello all, This PR tries to fix #1395. Many thanks for any comment.
2018-09-22PartialOrd and Ord for enumTA Thanh Dinh
2018-09-22codegen: Explicitly align unions if needed.Emilio Cobos Álvarez
Also adds a test header I missed from the previous PR. Fixes #1393
2018-09-19Auto merge of #1391 - emilio:u128, r=fitzgenbors-servo
codegen: Generate u128 / i128 when available. This is the first step to fix #1370 / #1338 / etc. Fix for that will build up on this.
2018-09-19Always force repr(align) attributes for stuff with alignment >= 16Emilio Cobos Álvarez
To work-around some cases of https://github.com/rust-lang/rust/issues/54341. Other cases where u128 and u64 are mixed in fields might not behave correctly, but the field offset assertions would catch them. Fixes #1370
2018-09-19Teach the float code about u128.Emilio Cobos Álvarez
2018-09-19Teach the blob code to generate i128 / u128 if available.Emilio Cobos Álvarez
This is very mechanical and boring, but needed.
2018-09-19codegen: Generate u128 / i128 when available.Emilio Cobos Álvarez
2018-09-19Add detection for i128 / u128 support.Emilio Cobos Álvarez
2018-09-15Auto merge of #1387 - dholbert:patch-1, r=emiliobors-servo
Fix typo: s/unkown/unknown/ (missing 'n')
2018-09-14Fix typo: s/unkown/unknown/ (missing 'n')Daniel Holbert
2018-09-13Auto merge of #1384 - emilio:whitespace-comment, r=fitzgenbors-servo
ir: Preserve better whitespace in comments. Fixes #1341.
2018-09-10generate type alias for the `block` typeFlier Lu
2018-09-07Auto merge of #1385 - emilio:mdbook-up, r=emiliobors-servo
Update mdbook.
2018-09-08Update mdbook.Emilio Cobos Álvarez
2018-09-08ir: Preserve better whitespace in comments.Emilio Cobos Álvarez
Fixes #1341.
2018-09-04Auto merge of #1381 - emilio:integer-eval, r=noxv0.40.0bors-servo
ir: Handle overflowing integer constant evaluation properly. Fixes #1380
2018-09-04Bump version.Emilio Cobos Álvarez
2018-09-04Fix the test for #1374.Emilio Cobos Álvarez
2018-09-04ir: Handle overflowing integer constant evaluation properly.Emilio Cobos Álvarez
Fixes #1380
2018-08-29options: mark clang-args lastSymphorien Gibol
before, bindgen -- -I blah would try to open `-I` as a header file.
2018-08-28Tests: Add a --use-core --impl-debug casechrysn
This demonstrates the [...] abbreviation of large arrays in contrast to the std variety. (Long (>32) arrays currently don't have a dedicated test, but are piggy-backed on the derive-debug-bitfield and derive-debug-function-pointer tests). Note that the single occurrence of the `std` namespace in the expectation is valid: No --ctypes-prefix was set, and ::std::os::raw is the default value that needs to be overridden in most practical --use-core applications.
2018-08-28Debug implementation: Don't use format! or String when core is enabledchrysn
As --use-core is typically given when the wrapped library is to be used in a no_std environment, format! and String can not be used. This is a quick fix that will cause regressions in the quality of the debug output to users that use core but are not no_std, but enables the use of bindgen with implemented Debug traits to no_std users. Closes: https://github.com/rust-lang-nursery/rust-bindgen/issues/1100
2018-08-28Debug implementation: use core if selectedchrysn
Contributes-To: https://github.com/rust-lang-nursery/rust-bindgen/issues/1100