summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-21Auto merge of #66 - emilio:const-methods, r=noxbors-servo
Take pointer constness into account, to fix generation of const methods. We signal method constness in the `this` pointer creating a `const` pointer, but the `to_rust_ty` implementation never checked that.
2016-10-19Auto merge of #103 - emilio:const-enum-unnamed, r=fitzgenbors-servo
codegen: Generate constants names for unnamed enums in classes. Fixes #84. cc @upsuper, sorry for not doing it before, I totally forgot about it. r? @fitzgen or @nox
2016-10-19codegen: Generate constants names for unnamed enums in classes.Emilio Cobos Álvarez
2016-10-19Auto merge of #100 - fitzgen:more-testing-stuff, r=emiliobors-servo
More testing and test infrastructure stuff See individual commit messages for details. Fixes #97 r? @emilio
2016-10-19Auto merge of #102 - emilio:docs-for-real, r=fitzgenbors-servo
ir: Nitpicks of the last docs review that I forgot to push. I forgot to push when I r=fitzgen in #99.
2016-10-19ir: Nitpicks of the last docs review that I forgot to push.Emilio Cobos Álvarez
I forgot to push when I r=fitzgen in #99.
2016-10-19Auto merge of #99 - emilio:docs-for-real, r=fitzgenbors-servo
ir: A bit more documentation and cleanup in parts of the `ir` module. r? @fitzgen or @nox
2016-10-18Ensure that the bindgen executable is up-to-date when we run testsNick Fitzgerald
2016-10-18Allow test headers to supply required bindgen featuresNick Fitzgerald
This adds the ability for tests to supply required features, and if the bindgen we're testing was not built with those features, then the test will be skipped. The syntax used to require features is like this: // bindgen-features: llvm_stable some_experiment another
2016-10-18Rewrite tests/tools/run-bindgen.pyNick Fitzgerald
Changes include: * Using argparse for argument parsing. This will help when extending the script to skip tests that will only pass when --features llvm_stable is used to build bindgen. * Pulling out all the various steps of the script into helper functions that are easier to digest at a glance, and have docstrings describing their role in the script. * Printing diffs between expected and actual generated bindings rather than the full source text of each.
2016-10-18ir: A bit more documentation in parts of the `ir` module.Emilio Cobos Álvarez
2016-10-18Auto merge of #98 - fitzgen:python-4-space, r=emiliobors-servo
Use 4 space indentation in run-bindgen.py Python style (PEP8) is 4 space indentation, and you'll be hard pressed to find anything else in the python community. We should match up with expectations, editor defaults, etc. r? @emilio
2016-10-18Use 4 space indentation in run-bindgen.pyNick Fitzgerald
Python style (PEP8) is 4 space indentation, and you'll be hard pressed to find anything else in the python community. We should match up with expectations, editor defaults, etc.
2016-10-18Auto merge of #95 - fitzgen:cargo-test, r=emiliobors-servo
Make `cargo test` work Fixes #51. r? @emilio
2016-10-18Call tests/tools/run-bindgen.py from `cargo test`Nick Fitzgerald
Fixes #51
2016-10-18Make tests/tools/run-bindgen.py check expectations if the rust path already ↵Nick Fitzgerald
exists
2016-10-18Ignore doctests that are really C++ code samples, or aren't meant to runNick Fitzgerald
2016-10-18Remove old tests that no longer build and runNick Fitzgerald
2016-10-18Auto merge of #85 - emilio:template-alias, r=noxbors-servo
Handle templated aliases. Fixes #83. cc @fitzgen r? @nox
2016-10-18ir: Test on typedefs also for template parameters that are transitively ↵Emilio Cobos Álvarez
applicable before discarding them.
2016-10-18ir: Potential fix for bogus name aliases when combined with #83.Emilio Cobos Álvarez
2016-10-18ir: Clarify comment on empty `base_name` in `canonical_name`.Emilio Cobos Álvarez
2016-10-18TestsEmilio Cobos Álvarez
2016-10-18ir: Add a few edge cases discovered by testing.Emilio Cobos Álvarez
2016-10-18ir: Handle templated aliases.Emilio Cobos Álvarez
2016-10-18clangll: Add missing cursor types.Emilio Cobos Álvarez
2016-10-18Auto merge of #82 - emilio:double-replace, r=noxbors-servo
item: Consider replaced items hidden. Fixes #81 r? @nox
2016-10-16Auto merge of #91 - mgjc:remove-typeresolver, r=emiliobors-servo
Removed TypeResolver Hope you like it.
2016-10-17Removed TypeResolvermgjc
2016-10-13item: Consider replaced items hidden.Emilio Cobos Álvarez
2016-10-12Auto merge of #79 - fitzgen:remove-usage-for-flags-that-no-longer-exist, ↵bors-servo
r=emilio Remove usage for flags that no longer exist r? @emilio
2016-10-12Be consistent with blank lines in USAGENick Fitzgerald
Most flags have a blank line between them, but some did not. Now they all do.
2016-10-12Remove the --allow-unknown-types flag from USAGENick Fitzgerald
The flag is no longer used since the bindgen rewrite.
2016-10-07Auto merge of #77 - jdub:more-bindgen-builder-functions, r=emiliobors-servo
More bindgen builder functions
2016-10-08Avoid spurious allocations, thanks to @emilioJeff Waugh
2016-10-08Builder::whitelisted_type()Jeff Waugh
2016-10-07Auto merge of #76 - jdub:make-bindgen-builder-great-again, r=emiliobors-servo
Fix lifetime issues with buildgen::builder() I switched to the consuming builder pattern, as that seemed the easiest, and ditched the phantom markers while I was at it.
2016-10-08Builder::whitelisted_var()Jeff Waugh
2016-10-08Builder::whitelisted_function()Jeff Waugh
2016-10-07Fix lifetime issues with buildgen::builder()Jeff Waugh
I switched to the consuming builder pattern, as that seemed the easiest, and ditched the phantom markers while I was at it.
2016-10-04Auto merge of #74 - servo:int, r=emiliobors-servo
Parse negative integers appropriately Instead of parsing a token at some specified index, we can parse the immediately found literal. Also, this allows negative integers to be parsed as `c_int`s (which is required for some of the constants).
2016-10-04Add test for 'int' in whitelist_vars and regen test expectationsRavi Shankar
2016-10-03Parse negative integers appropriatelyRavi Shankar
2016-10-02Auto merge of #71 - emilio:vector, r=noxbors-servo
Stub Vector types with arrays. Fixes https://github.com/servo/servo/issues/13540 r? @nox
2016-10-02Stub Vector types with arrays.Emilio Cobos Álvarez
2016-09-29Auto merge of #69 - upsuper:mangling-tpl-member, r=emiliobors-servo
Avoid mangling name for tpl class member. Fix #68 Not sure whether it is the right thing to do.
2016-09-29Avoid mangling name for tpl class member. Fix #68Xidorn Quan
2016-09-27Take pointer constness into account, to fix generation of const methods.Emilio Cobos Álvarez
2016-09-27Auto merge of #65 - emilio:port-docs, r=metajackbors-servo
Add documentation for building with ports and LLVM 3.9 Fixes #64.
2016-09-27Add documentation for building with ports and LLVM 3.9Emilio Cobos Álvarez
Fixes #64.