summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers
AgeCommit message (Collapse)Author
2017-01-23Move new test files out of libbindgenNick Fitzgerald
2017-01-23Trace methods in CompInfo's TypeCollector implNick Fitzgerald
Fixes #410
2017-01-23Unify under the `bindgen` name.Emilio Cobos Álvarez
2017-01-22Auto merge of #413 - emilio:debug-array-unaligned, r=fitzgenbors-servo
codegen: Avoid generating invalid Rust code when a struct is not properly aligned. r? @fitzgen cc #412
2017-01-21codegen: Avoid generating invalid Rust code when a struct is not properly ↵Emilio Cobos Álvarez
aligned.
2017-01-19Auto merge of #403 - emilio:variadic-fn, r=fitzgenbors-servo
codegen: Don't implement variadic methods. Fixes #402 r? @fitzgen
2017-01-19Auto merge of #401 - emilio:function-checks, r=fitzgenbors-servo
ir: Unify function checks so they apply to non-methods. Fixes #399 r? @fitzgen
2017-01-19Auto merge of #397 - emilio:trace-vars, r=fitzgenbors-servo
ir: Trace types across vars. r? @fitzgen
2017-01-18codegen: Don't implement variadic methods.Emilio Cobos Álvarez
Fixes #402
2017-01-16ir: Unify function checks so they apply to non-methods.Emilio Cobos Álvarez
2017-01-15ir: Trace types across vars.Emilio Cobos Álvarez
2017-01-13codegen: Prefer use instead of type aliases.Emilio Cobos Álvarez
2017-01-11ir: Handle inline namespaces.Emilio Cobos Álvarez
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-11Test opaque tracing through function arguments and pointer types.Emilio Cobos Álvarez
2017-01-11Auto merge of #393 - emilio:enum-const-api, r=upsuperbors-servo
Provide an API to constify enum variants. r? @upsuper
2017-01-11ir: Support hiding enum variants.Emilio Cobos Álvarez
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-11codegen: Constify enum variants.Emilio Cobos Álvarez
2017-01-10Auto merge of #383 - emilio:virtual-base, r=fitzgenbors-servo
Tidy up and test virtual inheritance handling. Done while investigating #380. r? @fitzgen
2017-01-09ir: Evaluate constant strings too.Emilio Cobos Álvarez
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-06tests: Add virtual base tests.Emilio Cobos Álvarez
2016-12-30Auto merge of #374 - fitzgen:derive-debug-with-array-too-big, r=emiliobors-servo
Derive debug with array too big See the first commit's message for details, second commit is just `rustfmt`. r? @emilio Not quite sure whether the `Opaque` struct is fully motivated... it seems like it would be useful later on in codegen, but might not be pulling its own weight without more usage...
2016-12-29Do not derive Copy/Debug for some opaque typesNick Fitzgerald
When we treat a type as opaque, either because it is explicitly annotated as such or because it is a template that has a non-type parameter, we need to check if the size is larger than RUST_DERIVE_IN_ARRAY_LIMIT. Performing this check requires information that is up the stack, in the `Item` rather than in the `CompInfo` or `Type`. Therefore, I introduced two traits to encapsulate whether a thing can derive `Debug` and `Copy` (the `CanDeriveDebug` and `CanDeriveCopy` traits, respectively) and implemented them for ALL THE THINGS. This allowes us to perform our various checks at the level where we have access to the necessary info, and to let sub-levels do their own checks with their sub-info. Fixes #372.
2016-12-29codegen: Use the canonical type to determine whether we should convert to a ↵Emilio Cobos Álvarez
pointer an argument. Fixes https://github.com/Yamakaky/rust-bindgen/issues/407
2016-12-28ir: More generic handling of non-deductible auto types.Emilio Cobos Álvarez
2016-12-28ir: Skip function template earlier.Xidorn Quan
This should fix #364.
2016-12-23Add test from #358.Emilio Cobos Álvarez
2016-12-23ir: Don't assume that base classes are already resolved.Emilio Cobos Álvarez
Fixes #359
2016-12-23ir: Be more resistent to failure when parsing enums.Emilio Cobos Álvarez
2016-12-21Add test for following ResolvedTypeRefPaul Faria
2016-12-21ir: Handle CXType_Auto.Emilio Cobos Álvarez
2016-12-15ir: Do the proper thing for methods.Emilio Cobos Álvarez
2016-12-15ir: Don't parse constructors twice.Emilio Cobos Álvarez
2016-12-15codegen: Properly mangle nested anonymous enums with duplicated variants.Emilio Cobos Álvarez
2016-12-15ir: Don't parse standalone destructors.Emilio Cobos Álvarez
2016-12-15codegen: Properly mangle method names.Emilio Cobos Álvarez
2016-12-13Add support for constructors, and integration tests.Emilio Cobos Álvarez
2016-12-11options: Ensure to pass the clang header last to clang.Emilio Cobos Álvarez
2016-12-10lib: Return error early if there are any error diagnostics.Emilio Cobos Álvarez
2016-12-07ir: Fix namespace_aware_canonical_name with disable_name_namespacing.Emilio Cobos Álvarez
2016-12-07ir: Add test for #315Emilio Cobos Álvarez
Fixes #315
2016-12-07ir: Saner whitelisting/blacklisting.Emilio Cobos Álvarez
2016-12-05codegen: Fix bindgen-injected items in namespaces.Emilio Cobos Álvarez
Found while trying to use namespaces in stylo.
2016-12-02Do not treat parent struct as a module for nested structsNick Fitzgerald
This fixes `ItemCanonicalPath` to return paths of the form `[module*, item]` rather than `[item*, item]`. That is, there will only be module names before the item's name, rather than also other arbitrary item names (such as parent structs). Fixes #311
2016-11-29ir: Don't assume our name is our base name too early when we're in a namespace.Emilio Cobos Álvarez
2016-11-24Add a new disable-name-namespacing option.Emilio Cobos Álvarez
2016-11-22A more coherent story for whitelisting.Emilio Cobos Álvarez
2016-11-22ir: Deduplicate namespaces.Emilio Cobos Álvarez
2016-11-21Trace function signature typesNick Fitzgerald
This extends the `TypeCollector` trait implementation for `Item` to consider items of kind `Function` and to collect the types found in the function's signature. Fixes #291
2016-11-21Auto merge of #284 - fitzgen:dont-eval-variadic-templates, r=emiliobors-servo
Do not evaluate variadic template types This is a workaround for an internal clang assertion that gets triggered if we try to evaluate a variadic template type reference. Fixes #283 r? @emilio
2016-11-21ir: Pass the location instead of the declaration for TemplateRef's.Emilio Cobos Álvarez