summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-10-30Auto merge of #165 - jeanphilippeD:issue141, r=emiliobors-servo
Return Option<Type> in clang::Type::ret_type fix #141 Fixes #141
2016-10-30Auto merge of #168 - KiChjang:diagnostic-drop, r=emiliobors-servo
Implement Drop for Diagnostic I built it and ran the test, and they all pass. Not sure what else there is to test for. Fixes #145.
2016-10-29Implement Drop for DiagnosticKeith Yeung
2016-10-29Auto merge of #163 - catdesk:master, r=KiChjangbors-servo
Change clang::Type::num_elements to return Option Fixes #139.
2016-10-29Change clang::Type::num_elements to return Optioncatdesk
2016-10-29Auto merge of #164 - catdesk:issue_142, r=KiChjangbors-servo
Check bounds when calling Comment::get_child (fix #142) Fixes #142.
2016-10-29Check bounds when calling Comment::get_child (fix #142)catdesk
2016-10-29Return Option<Type> in clang::Type::ret_type fix #141Jean-Philippe DUFRAIGNE
Also reduce the scope for unsafe code
2016-10-29ir: Document a bit better the local_id thing.Emilio Cobos Álvarez
2016-10-29ir: Cache the item's canonical name.Emilio Cobos Álvarez
2016-10-29ty: Don't bailout if we don't have any template type in the aliased template ↵Emilio Cobos Álvarez
parameter case.
2016-10-29Pass the potential id to be used as the type wrapper id.Emilio Cobos Álvarez
This should fix the MSVC problems. Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-10-29Auto merge of #157 - fitzgen:doc-regex-set-mod, r=emiliobors-servo
Document the `regex_set` module r? @emilio
2016-10-29Use safe_canonical_type for parse timeXidorn Quan
This should fix #160.
2016-10-27Document the `regex_set` moduleNick Fitzgerald
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