summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2017-08-14Small tests for derive PartialEqZhiting Zhu
2017-08-14Misc tests for derive PartialEqZhiting Zhu
2017-08-14Layout related tests for derive PartialEqZhiting Zhu
2017-08-14Template related tests for derive PartialEqZhiting Zhu
2017-08-14Anonymous related tests for derive PartialEqZhiting Zhu
2017-08-14Complex float related tests for derive PartialEqZhiting Zhu
2017-08-14Function related tests for derive PartialEqZhiting Zhu
2017-08-14Opaque related tests for derive PartialEqZhiting Zhu
2017-08-14Class related tests for derive PartialEqZhiting Zhu
2017-08-14Struct related tests for derive PartialEqZhiting Zhu
2017-08-14Union related tests for derive PartialEqZhiting Zhu
2017-08-14Can derive PartialEq analysisZhiting Zhu
2017-08-14Auto merge of #905 - bkchr:rustfmt, r=fitzgenbors-servo
Adds support for running rustfmt on generated bindings This patch enables bindgen to run rustfmt on generated bindings. Rustfmt is used from the global PATH. Two new command-line arguments are added: 1. --format-bindings: Enables running rustfmt 2. --format-configuration-file: The configuration file for rustfmt (not required). Fixes: #900
2017-08-14Disables --rustfmt-bindgens by defaultBastian Köcher
2017-08-14Improves error handling for rustfmtBastian Köcher
2017-08-14Renames format-* command-line arguments to rustfmt-*Bastian Köcher
The --rustfmt-configuration-file command-line argument automatically activates --rustfmt-bindings.
2017-08-14Fixes compilation warnings with rustc 1.21.0-nightly (13d94d5fa 2017-08-10)Bastian Köcher
2017-08-14Adds support for running rustfmt on generated bindingsBastian Köcher
This patch enables bindgen to run rustfmt on generated bindings. Rustfmt is used from the global PATH. Two new command-line arguments are added: 1. --format-bindings: Enables running rustfmt 2. --format-configuration-file: The configuration file for rustfmt (not required).