summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-13Add support for constructors, and integration tests.Emilio Cobos Álvarez
2016-12-12Auto merge of #330 - emilio:error, r=xidornbors-servo
lib: Return error early if there are any error diagnostics. r? @fitzgen This is a rebase of #280
2016-12-11lib: Do the path fixup inside the library, so users of the library don't ↵Emilio Cobos Álvarez
have to do this themselves.
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-09Auto merge of #328 - emilio:publish, r=emiliobors-servo
Publish r? @fitzgen
2016-12-09Use consistent indentation in toml files.Emilio Cobos Álvarez
2016-12-09Publish 0.1.1 for the recent changes.Emilio Cobos Álvarez
2016-12-09Rip off the clippy feature.Emilio Cobos Álvarez
2016-12-09s/_docs/docs_Emilio Cobos Álvarez
2016-12-09Auto merge of #329 - upsuper:upgrade-syntex, r=emiliobors-servo
Upgrade syntex to 0.50 for sync with servo
2016-12-09Upgrade deps to have syntex 0.50Xidorn Quan
2016-12-09Remove macro_rules in codegenXidorn Quan
2016-12-09Auto merge of #327 - fitzgen:libbindgen-on-crates-io, r=emiliobors-servo
Use a shared workspace for bindgen, libbindgen, and test_expectations This enables us to publish libbindgen on crates.io
2016-12-09Fix Travis CI test integration with workspacesNick Fitzgerald
2016-12-09Set `libbindgen`'s version to 0.1.0Nick Fitzgerald
2016-12-09Use a shared workspace for bindgen, libbindgen, and test_expectationsNick Fitzgerald
2016-12-08Auto merge of #326 - upsuper:patch-1, r=emiliobors-servo
Upgrade clang-sys in libbindgen It seems #322 doesn't upgrade the clang-sys of libbindgen, so bindgen is using two different versions of clang-sys. We should fix it. r? @emilio
2016-12-08Upgrade clang-sys in libbindgenXidorn Quan
2016-12-08Auto merge of #325 - emilio:stable-template-test, r=heycambors-servo
codegen: generate stable names for tests functions. r? @heycam
2016-12-07codegen: generate stable names for tests functions.Emilio Cobos Álvarez
2016-12-07Auto merge of #324 - emilio:coherent-replacement-and-whitelisting, r=fitzgenbors-servo
ir: Fix namespace_aware_canonical_name with disable_name_namespacing. This dropped off the previous PR.
2016-12-07ir: Fix namespace_aware_canonical_name with disable_name_namespacing.Emilio Cobos Álvarez
2016-12-07Auto merge of #321 - emilio:coherent-replacement-and-whitelisting, r=fitzgenbors-servo
Coherent replacement and whitelisting This is on top of the last few PRs. This moves us to take modules into account when whitelisting and replacing. This also fixes a few issues with replacements, and simplifies our handling of template aliases. r? @fitzgen
2016-12-07ir: Add test for #315Emilio Cobos Álvarez
Fixes #315
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-07Auto merge of #319 - emilio:union-in-ns, r=fitzgenbors-servo
codegen: Fix bindgen-injected items in namespaces. Found while trying to use namespaces in stylo. r? @fitzgen
2016-12-07Auto merge of #323 - servo:runtime-env, r=noxbors-servo
Use std::env::var instead of env! in build srcipt Recent versions of Cargo seems to not provide $OUT_DIR and some other environment variables anymore when building build scripts. CC @upsuper
2016-12-07Use std::env::var instead of env! in build srciptSimon Sapin
Recent versions of Cargo seems to not provide $OUT_DIR and some other environment variables anymore when building build scripts.
2016-12-07Auto merge of #322 - emilio:clang-sys-up, r=upsuperbors-servo
Update clang-sys. r? @upsuper
2016-12-07Update clang-sys.Emilio Cobos Álvarez
2016-12-06Auto merge of #318 - emilio:stylo-fallout, r=upsuperbors-servo
Add an API to decide what gets generated more granularly. This unifies options and is more flexible. I'd prefer to do the `bitflags!` thing as a followup, because airport WiFi (it could be an E-Easy). r? @fitzgen
2016-12-06Add an API to decide what gets generated more granularly.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-02Auto merge of #314 - fitzgen:assert-no-infinite-loops-in-ancestors, r=emiliobors-servo
Assert that we won't infinite loop In non-release builds with debug assertions, keep track of the set of `ItemId`s that we have iterated over in `ItemAncestorsIter` and make sure that we don't reach an ancestor we have already yielded, which would trigger an infinite loop.
2016-12-02Rename `AncestorsSeen` to `DebugOnlyItemSet`Nick Fitzgerald
The type is now being used outside of the context of ancestors, and additionally "debug only" more precisely describes its behavior.
2016-12-02Assert that we do not infinitely loop in ir::Item::name_targetNick Fitzgerald
This re-uses the infrastructure used when asserting that `ItemAncestorsIter` does not infinitely loop in `ir::Item::name_target`.
2016-12-02Assert that we won't infinite loop in ItemAncestorsIterNick Fitzgerald
In non-release builds with debug assertions, keep track of the set of `ItemId`s that we have iterated over in `ItemAncestorsIter` and make sure that we don't reach an ancestor we have already yielded, which would trigger an infinite loop.
2016-12-02Auto merge of #313 - fitzgen:issue-311, r=emiliobors-servo
Do not treat parent struct as a module for nested structs 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 r? @emilio
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-12-02Auto merge of #309 - fitzgen:use-root-relative, r=emiliobors-servo
Use the generated root module via a relative path We previously generated uses of the root module with absolute paths: use root; However this only works if the generated bindings are the root of the crate. If they were in some submodule then that path would not be valid. They are now generated relative to the current module, like this: use self::super::super::root; Fixes #96 r? @emilio
2016-12-02Use the generated root module via a relative pathNick Fitzgerald
We previously generated uses of the root module with absolute paths: use root; However this only works if the generated bindings are the root of the crate. If they were in some submodule then that path would not be valid. They are now generated relative to the current module, like this: use self::super::super::root; Fixes #96
2016-12-02Auto merge of #307 - impowski:naming_methods_unify, r=fitzgenbors-servo
Unify naming methods into a single method + options builder type Some of these changes are still under the question but I guess it's how @fitzgen describe it in issue #201.
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-29Auto merge of #304 - emilio:stylo-fallout, r=fitzgenbors-servo
Bunch of fixes for stylo and libclang 4 r? @fitzgen or @nox
2016-11-29ir: Add a note about duplicated names.Emilio Cobos Álvarez
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-27Auto merge of #305 - aethanyc:restore-links, r=emiliobors-servo
Restore links in README.md These were deleted accidentally in 073b12ff35a8ec6314d655804915f177ce453227.