summaryrefslogtreecommitdiff
path: root/libbindgen/src/ir/context.rs
AgeCommit message (Collapse)Author
2017-01-23Unify under the `bindgen` name.Emilio Cobos Álvarez
2017-01-19Auto merge of #397 - emilio:trace-vars, r=fitzgenbors-servo
ir: Trace types across vars. r? @fitzgen
2017-01-19ir: Fix the assert no danging items traversal to avoid getting hung on a ↵Emilio Cobos Álvarez
cyclic reference caused by inner_const.hpp.
2017-01-13Update aster and syntex.Emilio Cobos Álvarez
2017-01-11ir: Handle inline namespaces.Emilio Cobos Álvarez
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-10ir: Add a helper to the context to access the user-provided type chooser.Emilio Cobos Álvarez
2017-01-05Allow regexps for --blacklist_type and --opaque_typeJeremy Fitzhardinge
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-29Replace all non-fatal `error!`s with `warn!`sTetsuharu OHZEKI
2016-12-23libbindgen: run `cargo fmt`.Emilio Cobos Álvarez
2016-12-15Use a feature to control dangling item assertionsNick Fitzgerald
These checks are expensive enough that we only want to do them when hacking on bindgen itself, not anytime someone does a debug build of something that depends on bindgen.
2016-12-15Add assertion for dangling referencesArtem Biryukov
2016-12-13Use clang-sys bindings instead of ours.Emilio Cobos Álvarez
I plan to use a dynamically loaded clang-sys library to remove the llvm-stable feature. This is part of the work.
2016-12-09Upgrade deps to have syntex 0.50Xidorn Quan
2016-12-07ir: Move duplicated checks into a function.Emilio Cobos Álvarez
2016-12-07ir: Saner whitelisting/blacklisting.Emilio Cobos Álvarez
2016-12-07ir: Auto-whitelist replacements.Emilio Cobos Álvarez
2016-12-02Unify naming methods into a single method + options builder typeArtem Biryukov
This an implementation of `NameOptions` structure which will hold flags for building a name string. This fixes related to issue #201
2016-11-24Add a new disable-name-namespacing option.Emilio Cobos Álvarez
2016-11-22ir: Rework how we discover children of modules.Emilio Cobos Álvarez
2016-11-22A more coherent story for whitelisting.Emilio Cobos Álvarez
2016-11-22ir: Deduplicate namespaces.Emilio Cobos Álvarez
2016-11-21Reformat.Emilio Cobos Álvarez
2016-11-21codegen: Fix whitelisting inside namespaces.Emilio Cobos Álvarez
2016-11-16ir: context: fall back to use the declaration as a key when there's no USR.Emilio Cobos Álvarez
Apparently MSVC isn't that good at giving us USRs... Fixes #271
2016-11-16reformat.Emilio Cobos Álvarez
2016-11-16Transition to libbindgen sub-crateJeff Waugh
- The root crate is the `bindgen` binary - Rust-ify the test suite, no more subprocesses! - Update Travis config to test both crates