summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-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-08ir: Preserve better whitespace in comments.Emilio Cobos Álvarez
Fixes #1341.
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-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
2018-08-24Don't generate a __bindgen_align field if we support repr(align).Emilio Cobos Álvarez
2018-08-22Remove an out-of-date comment in RegexSet.Sébastien Duquette
RegexSet uses regex::RegexSet internally since the commit linked below, which compiles the regexes together. https://github.com/rust-lang-nursery/rust-bindgen/commit/51f5162f250a5ec10bc5ba8b91b60b45762bc999
2018-08-19Not gnereate binding for variadic function with ms_abiJean-Philippe Dufraigne
rustc fail to compile variadic function with ms_abi: error[E0045]: variadic function must have C or cdecl calling convention As suggested in issue, this short term fix: not generate binding and emit a warning. Fixes #997
2018-08-17Change a call to add_item that was passing a NullCursor.Sébastien Duquette
2018-08-14Auto merge of #1366 - gnzlbg:vec, r=emiliov0.38.0bors-servo
Map vector types to arrays and pass them by value This PR maps vector types to arrays and passes them by value (that is, they are passed to C as `[T; N]`. This already allows defining them as a blacklisted opaque type, such that the user can provide its own definition from e.g. `std::arch`. A subsequent PR should map vector types to unit structs with a private member: ```rust #[repr(align(16))] pub struct __m128([f32; 4]); ``` to make their alignment at least be correct. This should allow transmuting `std::arch` types to these types properly. Once that is done, we probably want to detect the canonical vector types (e.g. `__m128`) and pull in the type from `std`/`core`::arch instead.
2018-08-14address review commentsgnzlbg
2018-08-14Minor stylistic nits after #1362.Emilio Cobos Álvarez
2018-08-14address commentsSébastien Duquette
2018-08-14Convert CodegenOptions to a bitfield.Sébastien Duquette
2018-08-14map vector types to arrays and pass them by valuegnzlbg
2018-08-13Add ability to blacklist functions.Emilio Cobos Álvarez
Fixes #1336
2018-07-30lib: Remove stale TODO.Emilio Cobos Álvarez
2018-07-31Merge pull request #1351 from Imirsen/master. r=emilioEmilio Cobos Álvarez
select cpp or c search paths based on clang args
2018-07-30Minor cleanup after #1355.Emilio Cobos Álvarez
2018-07-30Require TemplateParameters to be Sized.Emilio Cobos Álvarez
To fix errors spawned since https://github.com/rust-lang/rust/issues/51443.
2018-07-30Merge pull request #1355 from Lytigas/associated-duplicate-enum. r=emilioEmilio Cobos Álvarez
Use associated constants for rust enums when available
2018-07-29Use associated constants for rust enums when availableJosh Hejna
2018-07-29Improve error message when libclang failsJoshua Liebow-Feeser
2018-07-26select cpp or c search paths based on clang argsKevin Schmid
2018-07-11Merge pull request #1348 from tmfink/feature-refactor. r=emilioEmilio Cobos Álvarez
Track Rust target features with declaration macro
2018-07-06Track Rust target features with declaration macroTravis Finkenauer
Eliminates the manual implementation of `From<RustTarget>` for `RustFeatures`.
2018-07-05Fix integer_type to actually return integers all the time.Emilio Cobos Álvarez
blob() does care about alignment, so we can get into an architecture where there are integers where size != align. This is a tentative fix for https://github.com/servo/servo/issues/21093, though as mentioned there I couldn't find a repro on my machine.
2018-07-05ir: Don't assume wchar is 2 bytes.Emilio Cobos Álvarez
Fixes #1345
2018-07-01codegen: Prevent unused_mut warnings, and fix formatting issues.Emilio Cobos Álvarez
Followup to #1342
2018-06-28Fix bitfields on big-endian machines.Petr Sumbera
Fixes #1340
2018-06-13Fix typos.Bruce Mitchener
2018-06-04add --constified-enum to output consts when the default is changedDaniel Brooks
2018-06-04remove unnecessary as_refDaniel Brooks
2018-06-04Rename from "enum variant" to "enum style"Daniel Brooks
2018-06-03Add an option to set the default codegen style for all enumsDaniel Brooks
2018-06-01Fix typo in `clang_version` documentationCharles Samborski
This is just a small PR to fix the "semvar" typo to "semver".
2018-05-29Check if `clang_Type_getNumTemplateArguments` is loaded before useStephen Touset
2018-05-16Handle pointer constness at the right level.Emilio Cobos Álvarez
2018-05-14ir: Make type parameters respect constness appropriately.Emilio Cobos Álvarez
2018-05-14ir: Make Opaque types respect constness appropriately.Emilio Cobos Álvarez
2018-05-14ir: Fix "this" argument generation to build a pointer to const, not a const ↵Emilio Cobos Álvarez
pointer.
2018-05-10Canonicalize a type (pointer type) first before checking for constnesscynecx
2018-05-03lib: Add a more-convenient API to add multiple lines to the same module.Emilio Cobos Álvarez