Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-27 | Document the `parse` module | Nick Fitzgerald | |
2016-10-27 | Document the `ir` module | Nick Fitzgerald | |
2016-10-27 | Auto merge of #153 - igilham:master, r=emilio | bors-servo | |
Changed the potentially null pointer to an Optional. The caller previously assumed the pointer was always valid and not null, so I called `expect` to make it fail early if it isn't. Fixes #144. | |||
2016-10-27 | Changed `clang::TranslationUnit::parse` to return an Option | Ian Gilham | |
2016-10-27 | return Result<u32, ()> instead of Option<u32> | malfunc | |
2016-10-27 | - changed output of fn num_args to option<u32> | malfunc | |
- changed fn args to handle option<u32> instead of usize | |||
2016-10-26 | Auto merge of #146 - fitzgen:moar-docs, r=fitzgen | bors-servo | |
Document the `clang` module I found an OK way to require docs on public methods for internal modules with a macro and feature flag combo (see first commit). Then I made documentation for public methods in the `clang` module required, and filled them out (see the second commit). r? @emilio | |||
2016-10-26 | Document the `clang` module | Nick Fitzgerald | |
2016-10-26 | s/type_resolver/ctx/ in src/ir/comp.rs as requested. | Daniel Desancic | |
2016-10-25 | Handle octal and negative literals properly | Xidorn Quan | |
2016-10-25 | Try to read integer literal from expr | Xidorn Quan | |
This and the commit before fixes #101. | |||
2016-10-25 | Use canonical type for checking integer type | Xidorn Quan | |
2016-10-24 | Add a method for requiring docs on internal modules | Nick Fitzgerald | |
2016-10-24 | Add TODO for not ignoring LinkType | Nick Fitzgerald | |
2016-10-24 | Add `#![deny(missing_docs)]` | Nick Fitzgerald | |
This commit adds the `#![deny(missing_docs)]` pragma, which causes compilation to fail if a public type or function is missing a documentation comment. It also adds missing documentation comments for public types and functions that were missing them. | |||
2016-10-24 | Remove the unused override_enum_ty option | Nick Fitzgerald | |
2016-10-24 | Remove the unused class_constants option | Nick Fitzgerald | |
2016-10-24 | Remove the ignored and unused --no-type-renaming flag and option | Nick Fitzgerald | |
2016-10-24 | Remove the unused rust_enums option | Nick Fitzgerald | |
2016-10-24 | Remove the unused gen_bitfield_methods option | Nick Fitzgerald | |
2016-10-24 | Remove the unused fail_on_unknown_type option | Nick Fitzgerald | |
2016-10-23 | Auto merge of #110 - heycam:stable-gen-names, r=emilio | bors-servo | |
Give vtables and anonymous items more stable generated names (fixes #60) r? @emilio This works pretty well. There are two remaining things in stylo's structs files that have identifiers that look like they won't be that stable: the anonymous enum for the NODE_* flags at the top level, and the `typedef union { ... } nsStyleUnion`. There are various anonymous enums and other things at the top level in system headers that cause these identifiers to have generated IDs in them higher than 1 and 2. Probably for anonymous enums we could just avoid generating a rust enum altogether, since having the static consts should be sufficient. I tried to mess with the codegen to automatically treat `typedef union { ... } nsStyleUnion` like `union nsStyleUnion { ... }` but it seems the way clang exposes the typedef and union are as two adjacent cursors rather than a parent-child relationship, so it's not so easy. | |||
2016-10-23 | Give vtables and anonymous items more stable generated names. | Cameron McCormack | |
2016-10-21 | Remove the dtor_attrs option | Nick Fitzgerald | |
It is unused. | |||
2016-10-21 | Remove `match_pat` options and builder methods | Nick Fitzgerald | |
We don't support match patterns anymore. | |||
2016-10-21 | Auto merge of #73 - emilio:complex, r=nox | bors-servo | |
Be able to represent Complex types with the correct layout. r? @nox | |||
2016-10-21 | Auto merge of #66 - emilio:const-methods, r=nox | bors-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-19 | codegen: Generate constants names for unnamed enums in classes. | Emilio Cobos Álvarez | |
2016-10-19 | ir: 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-18 | ir: A bit more documentation in parts of the `ir` module. | Emilio Cobos Álvarez | |
2016-10-18 | Ignore doctests that are really C++ code samples, or aren't meant to run | Nick Fitzgerald | |
2016-10-18 | ir: Test on typedefs also for template parameters that are transitively ↵ | Emilio Cobos Álvarez | |
applicable before discarding them. | |||
2016-10-18 | ir: Potential fix for bogus name aliases when combined with #83. | Emilio Cobos Álvarez | |
2016-10-18 | ir: Clarify comment on empty `base_name` in `canonical_name`. | Emilio Cobos Álvarez | |
2016-10-18 | ir: Add a few edge cases discovered by testing. | Emilio Cobos Álvarez | |
2016-10-18 | ir: Handle templated aliases. | Emilio Cobos Álvarez | |
2016-10-18 | clangll: Add missing cursor types. | Emilio Cobos Álvarez | |
2016-10-18 | Auto merge of #82 - emilio:double-replace, r=nox | bors-servo | |
item: Consider replaced items hidden. Fixes #81 r? @nox | |||
2016-10-17 | Removed TypeResolver | mgjc | |
2016-10-13 | item: Consider replaced items hidden. | Emilio Cobos Álvarez | |
2016-10-12 | Be consistent with blank lines in USAGE | Nick Fitzgerald | |
Most flags have a blank line between them, but some did not. Now they all do. | |||
2016-10-12 | Remove the --allow-unknown-types flag from USAGE | Nick Fitzgerald | |
The flag is no longer used since the bindgen rewrite. | |||
2016-10-08 | Avoid spurious allocations, thanks to @emilio | Jeff Waugh | |
2016-10-08 | Builder::whitelisted_type() | Jeff Waugh | |
2016-10-08 | Builder::whitelisted_var() | Jeff Waugh | |
2016-10-08 | Builder::whitelisted_function() | Jeff Waugh | |
2016-10-07 | Fix 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-03 | Parse negative integers appropriately | Ravi Shankar | |
2016-10-02 | Be able to represent Complex types with the correct layout. | Emilio Cobos Álvarez | |
2016-10-02 | Stub Vector types with arrays. | Emilio Cobos Álvarez | |