summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-14Revert "Bump quote to 0.4"Nick Fitzgerald
This reverts commit 6899c275ee0ab0687ec66c490ddd1a76f8223513. The `proc_macro2` crate depends on rustc internal crates, which means that `bindgen` would need to be run under `rustup`. We can follow https://github.com/rust-lang/rust/issues/47931 to get updates on when this issue might be resolved and we can update `quote` again. Fixes #1248
2018-02-13Merge pull request #1253 from Eijebong/log. r=emilioEmilio Cobos Álvarez
Update log to 0.4 and bump version
2018-02-13Update log to 0.4 and bump versionBastien Orivel
2018-02-13Merge pull request #1251 from emilio/enum-docs. r=pepyakinEmilio Cobos Álvarez
codegen: expose enum variant documentation.
2018-02-12tests: Add a test for multiline comments in enum variants.Emilio Cobos Álvarez
2018-02-12codegen: Expose variant comments.Emilio Cobos Álvarez
2018-02-04Auto merge of #1246 - emilio:macro-constants, r=noxbors-servo
ir: Make macro constants not being architecture-dependent. Fixes #1185
2018-02-04ir: Make macro constants not being architecture-dependent.Emilio Cobos Álvarez
Fixes #1185
2018-01-31Auto merge of #1243 - emilio:parse-callbacks, r=fitzgenbors-servo
callbacks: Introduce MacroParsingBehavior to allow ignoring macros. This is symmetric, yet less powerful, than enum_variant_behavior. Fixes #687.
2018-01-31callbacks: Introduce MacroParsingBehavior to allow ignoring macros.Emilio Cobos Álvarez
This is symmetric, yet less powerful, than enum_variant_behavior. Fixes #687.
2018-01-29Auto merge of #1241 - emilio:fwd-decl-no-fun, r=fitzgenbors-servo
codegen: Make forward declarations go through the more generic path. Instead of special-casing. This allows to use the normal flags to control what can be or not derived for them. Arguably deriving Copy / Clone is kind of busted for those, but changing this by default broke tests (RefPtr<ForwardDeclaredType> stopped working for example). So I think this is a good compromise. Fixes #1238
2018-01-29Auto merge of #1240 - emilio:virtual-dtor-fix, r=fitzgenbors-servo
ir: Choose the right mangling for destructors on all codepaths. Fixes #1133.
2018-01-29Auto merge of #1239 - emilio:cyclic-typedef-better, r=fitzgenbors-servo
codegen: Make the cyclic typedef name detection catch more cases. By looking through typedefs, we also catch more complex cases like the ones that appear on Android's stdlib. Fixes #946
2018-01-29codegen: Make forward declarations go through the more generic path.Emilio Cobos Álvarez
Instead of special-casing. This allows to use the normal flags to control what can be or not derived for them. Arguably deriving Copy / Clone is kind of busted for those, but changing this by default broke tests (RefPtr<ForwardDeclaredType> stopped working for example). So I think this is a good compromise. Fixes #1238
2018-01-29ir: Choose the right mangling for destructors on all codepaths.Emilio Cobos Álvarez
Fixes #1133.
2018-01-29codegen: Make the cyclic typedef name detection catch more cases.Emilio Cobos Álvarez
By looking through typedefs, we also catch more complex cases like the ones that appear on Android's stdlib. Fixes #946
2018-01-27Auto merge of #1237 - osialr:feature/str-flags, r=emiliobors-servo
Support str as input to Builder::no_* functions Previously, only String was supported on these while other functions in Builder worked with both str and String This tripped me up because `Builder::constified_enum_module` and `Builder::raw_line` worked with string slices but I got a compile error when I tried to use `Builder:;no_copy`
2018-01-27Support str as input to Builder::no_* functionsRyan Osial
Previously, only String was supported on these while other functions in Builder worked with both str and String
2018-01-26Auto merge of #1236 - emilio:with-rustfmt, r=fitzgenbors-servo
lib: Add a way to override rustfmt path. I'll need it to format some stuff on mozilla-central.
2018-01-26Minor version bump.Emilio Cobos Álvarez
2018-01-26lib: Add a way to override rustfmt path.Emilio Cobos Álvarez
I'll need it to format some stuff on mozilla-central.
2018-01-22Auto merge of #1235 - Eijebong:quote, r=fitzgenbors-servo
Bump quote to 0.4
2018-01-23Bump quote to 0.4Bastien Orivel
2018-01-22Auto merge of #1234 - fitzgen:fix-year, r=fitzgenbors-servo
Fix year in release date for 0.32.2
2018-01-22Fix year in release date for 0.32.2Nick Fitzgerald
2018-01-22Auto merge of #1233 - emilio:bump, r=pepyakinv0.32.2bors-servo
Minor version bump. Closes #1231.
2018-01-22Minor version bump.Emilio Cobos Álvarez
Closes #1231.
2018-01-22Auto merge of #1232 - emilio:enum-colon-bool, r=pepyakinbors-servo
codegen: Try to reasonably handle enum : bool. Just use the repr name we generate, since we generate constants for that. It's not worth trying to guess the actual type to use IMO. Bindings lose a bit of portability I guess, but that's really a lost bet already, so instead of special-casing bool and map constants, let's use a consistent representation everywhere. Fixes #1145
2018-01-22codegen: Try to reasonably handle enum : bool.Emilio Cobos Álvarez
Just use the repr name we generate, since we generate constants for that. It's not worth trying to guess the actual type to use IMO. Bindings lose a bit of portability I guess, but that's really a lost bet already, so instead of special-casing bool and map constants, let's use a consistent representation everywhere. Fixes #1145
2018-01-19Auto merge of #1228 - emilio:repr-c-enums, r=fitzgenbors-servo
codegen: Don't generate repr(C) for enums. That's only undefined for enums with fields. Fixes #1224 See also: https://botbot.me/mozilla/rustc/2018-01-19/?msg=95934948&page=2
2018-01-19codegen: Don't generate repr(C) for enums.Emilio Cobos Álvarez
That's only undefined for enums with fields. Fixes #1224 See also: https://botbot.me/mozilla/rustc/2018-01-19/?msg=95934948&page=2
2018-01-19Auto merge of #1227 - emilio:non-floating-type-complex, r=fitzgenbors-servo
ir: Handle _Complex _Float128 correctly. Unfortunately we can't test it for the same alignment issues that "long double" has. I also included the diagnostic code, just in case it happens again.
2018-01-19ir: Handle _Complex _Float128 correctly.cris-b
Unfortunately we can't test it for the same alignment issues that "long double" has. Fixes #1087
2018-01-17Auto merge of #1052 - ambaxter:bitfield_docs, r=fitzgenbors-servo
Added mdbook entry for bitfields. Fixes #818
2018-01-17Fixed typo.Adam Baxter
2018-01-16ir: Give more info for the non-floating type complex type message.Emilio Cobos Álvarez
2018-01-16Updated to fix nitpicksAdam Baxter
2018-01-10Merge pull request #1220 from acmcarther/patch-1Emilio Cobos Álvarez
Make CARGO_PKG_VERSION option_env!, rather than env!
2018-01-09Make CARGO_PKG_VERSION option_env!, rather than env!Alex McArther
2018-01-09Merge pull request #1218 from emilio/clang-trunkEmilio Cobos Álvarez
Clang trunk considers stuff in an anonymous namespace with internal linkage.
2018-01-07Clang trunk considers stuff in an anonymous namespace with internal linkage.Emilio Cobos Álvarez
I think that's right, and the previous behavior was just a bug. Rejigger the tests that show this difference since they aren't testing this in particular, and avoids adding more per-platform tests.
2018-01-06Auto merge of #1217 - emilio:variadic, r=pepyakinbors-servo
codegen: Be consistent about variadic signatures. Fixes #1216.
2018-01-06Merge pull request #1207 from glyn/license-compatibilityEmilio Cobos Álvarez
Fix license incompatibility
2018-01-06codegen: Be consistent about variadic signatures.Emilio Cobos Álvarez
Fixes #1216.
2018-01-06Merge pull request #1209 from Ekleog/masterEmilio Cobos Álvarez
Mark C++ exceptions as unsupported in the book
2018-01-05Auto merge of #1214 - kornelski:master, r=emiliobors-servo
Correct type for --whitelist-type doc
2018-01-05Correct type for --whitelist-type docKornel
2018-01-04Auto merge of #1210 - emilio:travis-maybe, r=emiliobors-servo
Fix travis. Per https://docs.travis-ci.com/user/languages/cpp/, though not super-confident this will fix it.
2018-01-04ci: Fix Travis.Emilio Cobos Álvarez
2018-01-03Mark C++ exceptions as unsupported in the bookLéo Gaspard