summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-19Auto merge of #825 - fitzgen:ci-assert-dosc, r=emiliobors-servo
Speed up CI runs by only `cargo check`ing for docs Running `cargo check --features testing_only_docs` will catch missing doc comments, and we can avoid doing a full build. r? @emilio
2017-07-18Speed up CI runs by only `cargo check`ing for docsNick Fitzgerald
Running `cargo check --features testing_only_docs` will catch missing doc comments, and we can avoid doing a full build.
2017-07-18Auto merge of #817 - fitzgen:include-comments-in-preprocessed-file, r=emiliobors-servo
Preserve comments when dumping preprocessed input headers It should be really easy to generate standalone, isolated test cases for bindgen bugs now \o/ See each commit for further details. r? @emilio
2017-07-18Drain the child processes stdout before waitingNick Fitzgerald
For very large logs to stdout, this prevents deadlocks.
2017-07-18Auto merge of #822 - upsuper:mangling-fix, r=emiliobors-servo
Stop Rust from prepending underscore before '?' for win32 This fixes #819. It also includes tests for different platforms which are not supposed to be affected, so that we won't regress them in the future either. The prefix `\x01` char is necessary for Win32. See also [msvc32_symbolify function in regen_atoms.py](https://github.com/servo/servo/blob/1b6d29e31996c87218352b825aa93e01909a6a24/components/style/gecko/regen_atoms.py#L35-L38).
2017-07-18Stop Rust from prepending underscore before '?' for win32Xidorn Quan
2017-07-17Clear up common misconception about RUST_LOG=bindgenNick Fitzgerald
2017-07-17Mention dumping preprocessed input headers in the issue templateNick Fitzgerald
2017-07-17Remove warning about stripped annotations that is now obsoleteNick Fitzgerald
2017-07-17Preserve comments when dumping preprocessed input headersNick Fitzgerald
The -C flag tells Clang's preprocessor not to strip comments, but unfortunately Clang will only accept it when dumping the preprocessed file to stdout, which is the -E flag. This means that we need to capture the child process's stdout and then copy it to a file ourselves now.
2017-07-17Auto merge of #815 - roblabla:patch-1, r=emiliobors-servo
Document -x c++, not -x=c++ When using -x=c++ in bindgen arguments, we hit #340. We should use -x c++ instead.
2017-07-17Document -x c++, not -x=c++Robin Lambertz
When using -x=c++ in bindgen arguments, we hit #340. We should use -x c++ instead.
2017-07-14Auto merge of #812 - fitzgen:dump-preprocessed, r=emiliobors-servo
Dump preprocessed input headers See each commit message. Fixes #811. r? @emilio
2017-07-14Auto merge of #813 - fitzgen:we-need-lots-more-fun-around-here, r=emiliobors-servo
11/10 MAJESTIC AF r? @emilio
2017-07-1311/10 MAJESTIC AFNick Fitzgerald
2017-07-13Recommend the `--dump-preprocessed-input` flag in CONTRIBUTING.mdNick Fitzgerald
It is both more correct and easier than using clang manually.
2017-07-13Ignore the files emitted by the --dump-preprocessed-input flagNick Fitzgerald
2017-07-13Add the ability to dump preprocessed input headersNick Fitzgerald
This is useful when debugging bindgen, using C-Reduce on an input to bindgen, or for constructing portable test cases when filing issues against bindgen. Fixes #811
2017-07-13Formatting inside a deriveNick Fitzgerald
2017-07-13Explicitly store the set of input headers in the builderNick Fitzgerald
Rather than eagerly expanding multiple input headers into `-include <header>` clang arguments, store them explicitly until we actually go to generate bindings. Same deal for unsaved file contents.
2017-07-12Auto merge of #809 - fitzgen:typos, r=fitzgenbors-servo
Fix typos in some comments
2017-07-12Fix typos in some commentsNick Fitzgerald
2017-07-12Auto merge of #808 - ↵bors-servo
fitzgen:issue-807-opaque-types-methods-getting-generated, r=emilio Fix tracing of opaque types This makes tracing opaque types' edges match what we codegen for opaque types. Although we still generate constructors, methods, etc for opaque types (just not fields and base members) we were not tracing them. Fixes #807 This miiight be related to https://bugzilla.mozilla.org/show_bug.cgi?id=1366050 too. r? @emilio
2017-07-12Fix tracing of opaque typesNick Fitzgerald
This makes tracing opaque types' edges match what we codegen for opaque types. Although we still generate constructors, methods, etc for opaque types (just not fields and base members) we were not tracing them. Fixes #807
2017-07-10Auto merge of #799 - emilio:comment-indent, r=fitzgenbors-servo
codegen: Make comments indentation-aware. This commit moves comment processing to a central place (well, two, because of field docs, but that's fine). Also, it makes comments indentation aware, so multiline comments don't appear garbled. Finally, it also fixes an out-of-bounds panic when processing an empty multiline comment.
2017-07-10Breaking version bump.Emilio Cobos Álvarez
2017-07-10codegen: Make comments indentation-aware.Emilio Cobos Álvarez
This commit moves comment processing to a central place (well, two, because of field docs, but that's fine). Also, it makes comments indentation aware, so multiline comments don't appear garbled. Finally, it also fixes an out-of-bounds panic when processing an empty multiline comment.
2017-07-10Auto merge of #805 - fitzgen:update-tutorial, r=emiliobors-servo
Update the tutorial for the latest bindgen release This also removes old references to `libbindgen` and replaces them with `bindgen`. I renamed the repo containing the tutorial's full code, so those github links should work, and this isn't just an artifact of a blind search/replace. Part of #803
2017-07-10Actually run the book deploy script in CINick Fitzgerald
The old checks to prevent deploying multiple times ended up making it so we never deployed because we changed the environment variables we used in CI. This change means we will deploy multiple times for every push, but this is an idempotent operation, and makes sure that we won't ever run into the same bug again.
2017-07-10Update the tutorial for the latest bindgen releaseNick Fitzgerald
This also removes old references to `libbindgen` and replaces them with `bindgen`. I renamed the repo containing the tutorial's full code, so those github links should work, and this isn't just an artifact of a blind search/replace.
2017-07-10Auto merge of #802 - emilio:opaque, r=fitzgenbors-servo
codegen: Fix some sloppiness in our handling of opaque types. Fixes #801
2017-07-09codegen: Fix some sloppiness in our handling of opaque types.Emilio Cobos Álvarez
Fixes #801
2017-07-08Auto merge of #791 - dylanmckay:preprocess-doc-comments, r=emiliobors-servo
Intelligently convert C/C++ comments to Rust With this change, we can correctly parse C++ block comments. ```cpp /** * Does a thing * * More documentation. This test does something * useful. */ ``` into ```rust /// Does a thing /// /// More documentation. This test does something /// useful. ``` Fixes servo/rust-bindgen#426.
2017-07-08Intelligently convert C/C++ comments to RustDylan McKay
With this change, we can correctly parse C++ block comments. ``` /** * Does a thing * * More documentation. This test does something * useful. */ ``` into ``` /// Does a thing /// /// More documentation. This test does something /// useful. ``` Fixes servo/rust-bindgen#426.
2017-07-07Auto merge of #796 - tz70s:master, r=fitzgenbors-servo
Automatically detect libclang version when testing Automatically detect libclang version when testing and use approppriate expectation files. Ref to issue #794.
2017-07-08Automatically detect libclang version when testingtz70s
Automatically detect libclang version when testing and use approppriate expectation files. Ref issue #794.
2017-07-07Auto merge of #797 - photoszzt:sep_analysis, r=fitzgenbors-servo
Separate the analysis framework in a different file. r? @fitzgen #765
2017-07-07Separate the analysis framework in a different file.zzhu
2017-07-07Auto merge of #795 - fitzgen:no-system-includes, r=emiliobors-servo
No system includes in test headers See each commit message. Disallowing *system* includes and not *all* includes because we have one local include in `extern.hpp`, and local includes will at least be consistent/reproducible. r? @emilio
2017-07-06Run the ./ci/no-includes.sh test from `cargo test`Nick Fitzgerald
Convenience to help developers catch this earlier, rather than only after pushing a pull request.
2017-07-06Disallow system header file includes in our test suiteNick Fitzgerald
There is no guarantee that the system running the tests has the header file, let alone the same version of it that you have. Any test with such an include directive won't reliably produce the consistent bindings across systems.
2017-07-06Auto merge of #792 - emilio:inline-ns, r=fitzgenbors-servo
ir: Properly skip inline namespaces when building names. Fixes #789
2017-07-06ir: Properly skip inline namespaces when building names.Emilio Cobos Álvarez
Fixes #789
2017-07-05Auto merge of #790 - servo:fitzgen-patch-1, r=emiliobors-servo
Minimal test cases don't have `#include`s The inclusion of an `#include` means that the test case * is not minimal, and * is harder to reproduce the bug with, since not everyone has the same headers (or versions of headers) on their system. r? @emilio
2017-07-05Minimal test cases don't have `#include`sNick Fitzgerald
The inclusion of an `#include` means that the test case * is not minimal, and * is harder to reproduce the bug with, since not everyone has the same headers (or versions of headers) on their system.
2017-07-05Auto merge of #783 - emilio:bump, r=fitzgenv0.26.3bors-servo
Minor version bump to grab clang-sys bump.
2017-07-05Auto merge of #786 - emilio:mdbook-ci, r=fitzgenbors-servo
Pin the mdbook version for CI. Fixes #779.
2017-07-05Auto merge of #787 - SirVer:00_fix_repetition_operation, r=emiliobors-servo
Remove Type::detect_has_vtable_cycle. After some discussion in #765 we do not think anymore that this can ever be true.
2017-07-04Remove Type::detect_has_vtable_cycle.Holger Rapp
After some discussion in #765 we do not think anymore this it can ever be true.
2017-07-04Pin the mdbook version for CI.Emilio Cobos Álvarez
Fixes #779.