Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-05 | Auto merge of #1058 - pepyakin:bitfield-accessors, r=fitzgen | bors-servo | |
Generate bitfield accessor names eagerly @fitzgen r? I'm not sure about `deanonymize_fields`, as we now assign names to data members and also generate names for the bitfield accessors, but can't come up with a better name. | |||
2017-10-05 | Extend the `csmith` README | Nick Fitzgerald | |
2017-10-05 | Make the `csmith` driver script executable | Nick Fitzgerald | |
2017-10-05 | Add a blurb about C-Smith fuzzing to CONTRIBUTING.md | Nick Fitzgerald | |
And link to the csmith-fuzzing/README.md file for more details. Fixes #1038 | |||
2017-10-05 | Review fixes | Sergey Pepyakin | |
2017-10-05 | rustfmt | Sergey Pepyakin | |
2017-10-05 | Introduce `with_loaned_item`. | Sergey Pepyakin | |
2017-10-05 | Make the C-Smith fuzzing README a .md file | Nick Fitzgerald | |
2017-10-05 | Use bitfield getter_name in impl_debug. | Sergey Pepyakin | |
Also make impl_partialeq test to also cover impl_debug case. | |||
2017-10-05 | Use bitfield getter_name in impl_partialeq | Sergey Pepyakin | |
2017-10-05 | Eagerly generate bitfield accessor names | Sergey Pepyakin | |
Also clean a bit. | |||
2017-10-04 | Auto merge of #1060 - aeleos:master, r=fitzgen | bors-servo | |
Make bitfields larger than type opaque @fitzgen r? Fixes #1007 by ensuring that bitfields larger than type will be opaque, ensuring the layout is correct. | |||
2017-10-04 | Make bitfields larger than type opaque. | Oliver Geller | |
2017-10-04 | Auto merge of #1059 - aeleos:master, r=fitzgen | bors-servo | |
Remove early anonymous bitfield filtering and consolidate name method This PR is some changes to early bitfield filtering to help fix (#1007) This does not close (#1007), but allows for checking if the bitfield is too large during a later stage. @fitzgen r? | |||
2017-10-04 | Remove early anonymous bitfield filtering and consolidate name method | Oliver Geller | |
2017-10-02 | Auto merge of #1012 - pepyakin:derive-partialeq-manually, r=fitzgen | bors-servo | |
Derive partialeq "manually" when possible Fixes #879 r? @fitzgen | |||
2017-10-03 | Turn comments into doc comments in tests. | Sergey Pepyakin | |
2017-10-03 | Assert we only gen partialeq for non rust unions | Sergey Pepyakin | |
2017-10-03 | Use `if let` instead of plain if. | Sergey Pepyakin | |
2017-10-03 | Derive partialeq "manually" when possible | Sergey Pepyakin | |
Remove derive-partialeq-template-inst test. Add comments. Don't implement PartialEq for incomplete arrays Handle opaque bases and template instantiations Extract constrain_type. Extract `is whitelisted?` check Add failing partialeq-anonfield join for comps Fix: return insert if not whitelisted Delegate TypeRefs and alias to constrain_join. Delegate Template instantiations to constrain_join Add derive-partialeq-pointer.hpp test Update comment. Fix layout alignment larger that array limit Add missing test for derive-partialeq-anonfield.rs Clean Clean Fix typo in opaque-template-inst-member test Remove redudant stmt Add comment on can_supersede. Format impl_partialeq and leave a comment Extract requires_storage into it's own function. Clean | |||
2017-10-02 | Auto merge of #1050 - fitzgen:strongly-type-ids, r=pepyakin | bors-servo | |
Strongly type ids * [X] `TypeId` * [X] `ModuleId` * [x] `VarId` * [x] `FunctionId` | |||
2017-10-02 | s/lookup_item_id/lookup/ in method names | Nick Fitzgerald | |
Its not just item ids now, and that name was pretty long... | |||
2017-10-02 | Make `has_destructor` checks operate on TypeId | Nick Fitzgerald | |
2017-10-02 | Tighten up `is_unsized` and `has_vtable` checks to operated on TypeId | Nick Fitzgerald | |
2017-10-02 | Make methods/constructors/destructors use FunctionId | Nick Fitzgerald | |
And also allow ID comparison across ID types, as this makes implementing the above much easier. | |||
2017-10-02 | Introduce the `FunctionId` newtype for ids pointing to functions | Nick Fitzgerald | |
2017-10-02 | Make `CompInfo::inner_vars` use `VarId` instead of `ItemId` | Nick Fitzgerald | |
2017-10-02 | Introduce VarId for ids pointing to Var | Nick Fitzgerald | |
2017-10-02 | Put newtype-of-ItemId boilerplate behind a macro | Nick Fitzgerald | |
2017-10-02 | Introduce ModuleId to strongly type IDs pointing at Modules | Nick Fitzgerald | |
2017-10-02 | Replace `as_type_id_unchecked` calls with checked calls where possible | Nick Fitzgerald | |
2017-10-02 | Replacement should use TypeId rather than ItemId | Nick Fitzgerald | |
2017-10-02 | Turn `CompInfo::inner_types` into TypeId | Nick Fitzgerald | |
2017-10-02 | A bunch of parsing things should return TypeId | Nick Fitzgerald | |
2017-10-02 | Make `Enum::repr` into a `TypeId` | Nick Fitzgerald | |
2017-10-02 | `instantiate_template` should take a `TypeId` for the template definition | Nick Fitzgerald | |
2017-10-02 | Make base members use TypeId rather than ItemId | Nick Fitzgerald | |
2017-10-02 | Make a bunch more methods take generic ids | Nick Fitzgerald | |
2017-10-02 | Make comp fields contain `TypeId`s | Nick Fitzgerald | |
2017-10-02 | Make functions which take an ItemId generic to take any kind of id | Nick Fitzgerald | |
2017-10-02 | Make TemplateInstantiation's definition into a TypeId | Nick Fitzgerald | |
The definition of a template is always a type, so it should be a TypeId rather than an ItemId. Template arguments, on the other hand are not guaranteed to be types. They can be constant values, for example. | |||
2017-10-02 | Make `TypeKind::{Alias,TemplateAlias,Array,Pointer,Reference}` use `TypeId` | Nick Fitzgerald | |
This commit makes certain `TypeKind`s that can only reference other types use `TypeId` instead of `ItemId`. | |||
2017-10-02 | Resolve an `Item` with any id type that converts into an `ItemId` | Nick Fitzgerald | |
2017-10-02 | Turn `build_templated_path` into `build_path` | Nick Fitzgerald | |
None of the callers were passing template parameters. | |||
2017-10-02 | Remove unused parameter to `codegen::utils::type_from_named` | Nick Fitzgerald | |
2017-10-02 | Introduce the `TypeId` newtype over `ItemId` | Nick Fitzgerald | |
This commit also makes `BindgenContext::resolve_type` take a `TypeId`, and adds unchecked conversions everywhere that we call it. Next, I'm going to go through the code base, replacing these unchecked conversions with checked ones, and tightening up types as I go. | |||
2017-10-02 | Auto merge of #1054 - rust-lang-nursery:add-pepyakin-as-reviewer, r=fitzgen | bors-servo | |
Add @pepyakin to the list of reviewers 🎉 🎉 🎉 r? @pepyakin | |||
2017-10-02 | Add @pepyakin to the list of reviewers 🎉 🎉 🎉 | Nick Fitzgerald | |
2017-10-01 | Auto merge of #1049 - ↵ | bors-servo | |
fitzgen:wrong-parent-id-with-nested-class-declarations, r=emilio ir: Prefer using known semantic parents When choosing a parent ID for a type that we are parsing, prefer known semantic parents over the provided parent ID. It seems like we shouldn't even be passing explicit parent IDs around (they're often buggy), and instead should expand the `known_semantic_parent` infrastructure, but I'll leave that to some future work. Fixes #1048 r? @emilio | |||
2017-09-29 | ir: Prefer using known semantic parents | Nick Fitzgerald | |
When choosing a parent ID for a type that we are parsing, prefer known semantic parents over the provided parent ID. It seems like we shouldn't even be passing explicit parent IDs around (they're often buggy), and instead should expand the `known_semantic_parent` infrastructure, but I'll leave that to some future work. Fixes #1048 |