summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-19codegen: Generate u128 / i128 when available.Emilio Cobos Álvarez
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-04Fix the test for #1374.Emilio Cobos Álvarez
2018-09-04ir: Handle overflowing integer constant evaluation properly.Emilio Cobos Álvarez
Fixes #1380
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-24Don't generate a __bindgen_align field if we support repr(align).Emilio Cobos Álvarez
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-14map vector types to arrays and pass them by valuegnzlbg
2018-08-14add more vector testsgnzlbg
2018-08-13Fix a pre-existing failing test?Emilio Cobos Álvarez
2018-08-13Unrelated test updates due to new rustfmt.Emilio Cobos Álvarez
2018-08-13Add ability to blacklist functions.Emilio Cobos Álvarez
Fixes #1336
2018-07-30Add a test for dupe enums and namespaces.Emilio Cobos Álvarez
I feared that this might fail, but it doesn't! :)
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-29Quote regexes in test headersJosh Hejna
When using test-one.sh, unquoted wildcards are expanded by the shell, resulting in failing tests.
2018-07-01Update test expectations.Emilio Cobos Álvarez
2018-07-01Update test expectations.Emilio Cobos Álvarez
2018-06-04add --constified-enum to output consts when the default is changedDaniel 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-05-16Handle pointer constness at the right level.Emilio Cobos Álvarez
2018-05-12Add missing line in test expectationcynecx
2018-05-12Add test from issue #511cynecx
2018-05-10Adjust proper constness in testscynecx
2018-04-07Auto merge of #1303 - Eijebong:bump, r=emiliobors-servo
Bump quote to 0.5
2018-04-07Auto merge of #1293 - strake:use_associated_consts, r=emiliobors-servo
optionally use associated constants in bitfields See #1166 r? @emilio
2018-04-07Make doc comments nice again.Emilio Cobos Álvarez
2018-04-06not generate associated constants to unnamed typesM Farkas-Dyck
2018-04-06Auto merge of #1294 - marty-se:master, r=fitzgenbors-servo
Whitelist inner types of whitelisted types even with no-recursive-whitelisting. This fixes issue #1285 where inner types were code generated but not properly processed by the derive analysis.
2018-04-04test associated constsM Farkas-Dyck
2018-04-04Bump quote to 0.5 and proc_macro2 to 0.3Bastien Orivel
2018-04-03Revert "Revert "Bump quote to 0.4""Bastien Orivel
This reverts commit eb415c7a7cf8c72664dbfda5a614474cda5c185c.
2018-04-03Now that we have stuff that depends on libclang-5 we need to do this.Emilio Cobos Álvarez
2018-04-03codegen: Don't skip alignment checks if we support repr align.Emilio Cobos Álvarez
Plus fix the check that avoids us generating explicit alignment fields for structs aligned to more than pointer-size. Fixes #1291
2018-04-02Whitelist inner types of whitelisted types even with no-recursive-whitelisting.Martin Karlgren
This fixes issue #1285 where inner types were code generated but not properly processed by the derive analysis.
2018-03-31ir: Remove an assertion that happens to be invalid.Emilio Cobos Álvarez
You can define a struct declared in an outer scope inside another struct, and the compiler won't even complain... C, what a language. Fixes #1281
2018-03-17Handle bitfield enum pattern aliasingTravis Finkenauer
The previous fix for issue #1198 was incomplete.
2018-03-13Auto merge of #1272 - tmfink:issue-1198, r=emiliobors-servo
Declare precedence on enum types Fixes issue #1198 where an enum matches the pattern for multiple enum types, such as constified module enum AND rustified enum. Documents precedence in `Builder` doc comment.
2018-03-13Move issue-1198 tests out of libclang-3.9 dirTravis Finkenauer
2018-03-13tests: Test repr(align()) only on nightly for now, make it 1.25 to reflect ↵Emilio Cobos Álvarez
reality.
2018-03-13tests: Add a test for alignas(double).Emilio Cobos Álvarez
2018-03-13codegen: support repr(align).Emilio Cobos Álvarez
Fixes #917
2018-03-11Fix bug when enum matched multiple typesTravis Finkenauer
If an enum matched a pattern for rustified enum and constified module enum, then rust code would fail to compile with "ambiguous associated type" error. We fix the error by giving constified module enum "higher precedence". Fixes issue #1198
2018-03-05Auto merge of #1268 - emilio:enum-replace, r=fitzgenbors-servo
ir: Allow replacing enums and enum variants. Fixes #1267.
2018-03-04Untry.Emilio Cobos Álvarez
Use the ? operator instead of try, and add some more uses of it on Option<> that were straight-forward.