summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-10-27Document the `parse` moduleNick Fitzgerald
2016-10-27Document the `ir` moduleNick Fitzgerald
2016-10-27Auto merge of #153 - igilham:master, r=emiliobors-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-27Changed `clang::TranslationUnit::parse` to return an OptionIan Gilham
2016-10-27return 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-26Auto merge of #146 - fitzgen:moar-docs, r=fitzgenbors-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-26Document the `clang` moduleNick Fitzgerald
2016-10-26s/type_resolver/ctx/ in src/ir/comp.rs as requested.Daniel Desancic
2016-10-25Handle octal and negative literals properlyXidorn Quan
2016-10-25Try to read integer literal from exprXidorn Quan
This and the commit before fixes #101.
2016-10-25Use canonical type for checking integer typeXidorn Quan
2016-10-24Add a method for requiring docs on internal modulesNick Fitzgerald
2016-10-24Add TODO for not ignoring LinkTypeNick Fitzgerald
2016-10-24Add `#![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-24Remove the unused override_enum_ty optionNick Fitzgerald
2016-10-24Remove the unused class_constants optionNick Fitzgerald
2016-10-24Remove the ignored and unused --no-type-renaming flag and optionNick Fitzgerald
2016-10-24Remove the unused rust_enums optionNick Fitzgerald
2016-10-24Remove the unused gen_bitfield_methods optionNick Fitzgerald
2016-10-24Remove the unused fail_on_unknown_type optionNick Fitzgerald
2016-10-23Auto merge of #110 - heycam:stable-gen-names, r=emiliobors-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-23Give vtables and anonymous items more stable generated names.Cameron McCormack
2016-10-21Remove the dtor_attrs optionNick Fitzgerald
It is unused.
2016-10-21Remove `match_pat` options and builder methodsNick Fitzgerald
We don't support match patterns anymore.
2016-10-21Auto merge of #73 - emilio:complex, r=noxbors-servo
Be able to represent Complex types with the correct layout. r? @nox
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-19codegen: Generate constants names for unnamed enums in classes.Emilio Cobos Álvarez
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-18ir: A bit more documentation in parts of the `ir` module.Emilio Cobos Álvarez
2016-10-18Ignore doctests that are really C++ code samples, or aren't meant to runNick Fitzgerald
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-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-17Removed TypeResolvermgjc
2016-10-13item: Consider replaced items hidden.Emilio Cobos Álvarez
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-08Avoid spurious allocations, thanks to @emilioJeff Waugh
2016-10-08Builder::whitelisted_type()Jeff Waugh
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-03Parse negative integers appropriatelyRavi Shankar
2016-10-02Be able to represent Complex types with the correct layout.Emilio Cobos Álvarez
2016-10-02Stub Vector types with arrays.Emilio Cobos Álvarez