summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-06Add `bindgen::Builder::derive_copy`mchlrhw
2017-09-06ir: Pass the target to clang if it wasn't explicitly passed already.Emilio Cobos Álvarez
Fixes #942 Fixes #947
2017-09-05Document that blacklisted types are pessimistic with `derive`Nick Fitzgerald
2017-09-05Do not derive Copy for blacklisted typesNick Fitzgerald
Presumably they are blacklisted because we can't understand them properly, so be pessimistic about what we can derive for it. Fixes #944.
2017-09-05Auto merge of #926 - emilio:issue-888, r=fitzgenbors-servo
ir: When something has a definition, return unresolved type references until we parse it. This fixes #888
2017-09-04ir: Fix definitions outside of base class manually tracking the correct parent.Emilio Cobos Álvarez
2017-09-04Test.Emilio Cobos Álvarez
2017-09-04Existing test adjustments.Emilio Cobos Álvarez
2017-09-04ir: When something has a definition, return unresolved type references until ↵Emilio Cobos Álvarez
we parse it. This ensures that we see all the relevant types that are defined when parsing the definition, avoiding problems like #888. Fixes #888
2017-09-04Auto merge of #945 - glyn:code-formatting-not-enforced, r=emiliobors-servo
Delete automatic code formatting guidelines These are currently inaccurate as `cargo fmt` is not enforced for bindgen. This section can be re-instated if and when code formatting is enforced.
2017-09-04Delete automatic code formatting guidelinesGlyn Normington
These are currently inaccurate as `cargo fmt` is not enforced for bindgen. This section can be re-instated if and when code formatting is enforced.
2017-08-31Auto merge of #938 - jhod0:time_phases, r=fitzgenbors-servo
Time phases New module `time_phases` with an RAII timer which prints to stderr, and command-line flag `--time-phases` to enable it. Fixes #933
2017-08-30Squash commit for --time-phases command line optionJackson O'Donnell
initial timer branch commit added time_phases builder parameter create timers for BindgenContex analyses, codegen time parse added docstrings added fitzgens suggestions add --time-phases to bindgen::Builder::command_line_flags
2017-08-29Auto merge of #936 - jhod0:no_fieldgen_on_opaque, r=fitzgenbors-servo
Avoid generating fields/methods for opaque objects WIP fix for issue #929 With libclang 4, passes all tests on my machine except `dump_preprocessed_input`, but that fails on the master branch as well
2017-08-29removed commented code, added punctuationJackson O'Donnell
2017-08-28no fields or methods created for opaqueJackson O'Donnell
2017-08-28Auto merge of #935 - bradfier:bump, r=emiliobors-servo
Bump version to 0.30.0 Version bump, primarily to get #832 and #892 in now that 1.19 is out and untagged unions are usable in stable! r? @emilio
2017-08-26Bump version to 0.30.0Richard Bradfield
2017-08-25Auto merge of #932 - bd339:has_destructor_fp, r=fitzgenbors-servo
Rewrite `has destructor` analysis as a fixed-point analysis Fixes #927 . Note that this creates a dependency between the "cannot derive copy" and "has destructor" analysis, i.e. the "has destructor" analysis must run before the "cannot derive copy" analysis, because "cannot derive copy" needs the results of "has destructor".
2017-08-25Rewrite the `has destructor` analysis as a fixed-point analysis in the ↵Benjamin Dahse
monotone framework
2017-08-24Auto merge of #930 - MaloJaffre:simplify_blob, r=fitzgenbors-servo
Simplify helpers::blob Thanks @fitzgen for the detailed instructions. Fixes #928.
2017-08-24Simplify helpers::blobMalo Jaffré
Thanks @fitzgen for the detailed instructions. Fixes #928.
2017-08-22Auto merge of #919 - photoszzt:has_float, r=fitzgenbors-servo
Can derive Eq Fix: #880 r? @fitzgen
2017-08-21Small tests for derive EqZhiting Zhu
2017-08-21Misc tests for derive EqZhiting Zhu
2017-08-21Layout related tests for derive EqZhiting Zhu
2017-08-21Template related tests for derive EqZhiting Zhu
2017-08-21Anonymous related tests for derive EqZhiting Zhu
2017-08-21Complex float related tests for derive EqZhiting Zhu
2017-08-21Function related tests for derive EqZhiting Zhu
2017-08-21Opaque tests for can derive EqZhiting Zhu
2017-08-21Class related tests for can derive EqZhiting Zhu
2017-08-21Struct related tests for can derive EqZhiting Zhu
2017-08-21Union related tests for can derive EqZhiting Zhu
2017-08-21Can derive EqZhiting Zhu
2017-08-21Auto merge of #924 - fitzgen:rename-named-to-ty-param, r=fitzgenbors-servo
Rename `TypeKind::Named` to `TypeKind::TypeParam` Also renames a bunch of other things referring to named types to refer to type parameters. Fixes #915
2017-08-21Rename `TypeKind::Named` to `TypeKind::TypeParam`Anna Liao
Also renames a bunch of other things referring to named types to refer to type parameters. Fixes #915
2017-08-20Auto merge of #922 - tmfink:doc-unions, r=emiliobors-servo
Update doc for unions Addresses #832 I also modified the `--help` text to print the default Rust target.
2017-08-19Update doc for unionsTravis Finkenauer
Addresses #832
2017-08-17Auto merge of #921 - emilio:recur-incl, r=fitzgenbors-servo
Recursively include src files, since Cargo pattern-matching changed.
2017-08-17Recursively include src files, since Cargo pattern-matching changed.Emilio Cobos Álvarez
2017-08-17Auto merge of #920 - photoszzt:fix_comments, r=emiliobors-servo
Fix misleading comments r? @fitzgen or @emilio
2017-08-16Fix misleading commentsZhiting Zhu
2017-08-16Auto merge of #916 - fitzgen:check-if-num-template-args-is-loaded, r=fitzgenbors-servo
Check if `clang_Type_getNumTemplateArguments` is loaded before use Older clang don't have it, and while we can't pass our whole test suite with those older clangs, we can still generate simple C bindings, so it makes sense not to panic for C++ only things.
2017-08-16Check if `clang_Type_getNumTemplateArguments` is loaded before useNick Fitzgerald
Older clang don't have it, and while we can't pass our whole test suite with those older clangs, we can still generate simple C bindings, so it makes sense not to panic for C++ only things.
2017-08-14Auto merge of #913 - fitzgen:only-partialeq-if-needed, r=photoszztbors-servo
Only compute which types we can derive PartialEq for if we'll use it If we aren't going to derive `PartialEq`, then it doesn't make sense to even run the analysis. r? @photoszzt or @emilio
2017-08-14Only compute which types we can derive PartialEq for if we'll use itNick Fitzgerald
If we aren't going to derive `PartialEq`, then it doesn't make sense to even run the analysis.
2017-08-14Auto merge of #912 - fitzgen:only-run-analyses-if-needed, r=emiliobors-servo
Only run analyses when we are going to use their results Currently, there are various analyses related to deriving various traits that we unconditionally run. However, if we aren't going to derive those traits in codegen, then computing whether or not we can derive the traits is wasteful. r? @emilio
2017-08-14Only run analyses when we are going to use their resultsNick Fitzgerald
Currently, there are various analyses related to deriving various traits that we unconditionally run. However, if we aren't going to derive those traits in codegen, then computing whether or not we can derive the traits is wasteful.
2017-08-14Auto merge of #907 - photoszzt:derive_partial_eq, r=fitzgenbors-servo
Derive PartialEq Analysis Fix: #878 r? @fitzgen