summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-04-06gen: Make const the new_bitfield functionsEmilio Cobos Álvarez
I changed the wrong constness in the previous commit.
2016-04-06parser: Add support for using declarations.Emilio Cobos Álvarez
2016-04-05gen: Add back constness of new_bitfield_xxx functionsEmilio Cobos Álvarez
2016-04-05types: Fallback to the specifyed layout if no underlying layout was foundEmilio Cobos Álvarez
This fixes a problem with uint32_t's layout in SM. cc: @nox
2016-04-04parser: Add in-class typedef resolving to method argumentsEmilio Cobos Álvarez
2016-04-04gen: parser: Move name mangling to parserEmilio Cobos Álvarez
2016-04-04parser: Propagate template arguments to nested structsEmilio Cobos Álvarez
2016-04-04parser: Honour annotations on typedefs and fully on type declarations.Emilio Cobos Álvarez
2016-04-04parser: Allow nested classesEmilio Cobos Álvarez
We didn't even tried to parse them, which is weird.
2016-04-03gen: Allow specifying raw lines before the content startsEmilio Cobos Álvarez
It's useful to add `use` or `include!` lines.
2016-04-03gen: Make bitfields work for other typesEmilio Cobos Álvarez
2016-04-03gen: parser: Rework bitfield implementation to support enumsEmilio Cobos Álvarez
I've probably messed something up, I know it... also we assume the width is 8 bits, which might be wrong, but I'll add it in a followup.
2016-04-02gen: Generate an enum with appropiate repr for declarations.Emilio Cobos Álvarez
2016-04-02gen: Generate correctly nested members of unionsEmilio Cobos Álvarez
2016-04-02gen: Generate a dummy pointer-aligned field into vtablesEmilio Cobos Álvarez
2016-04-02gen: repr(C) opaque typesEmilio Cobos Álvarez
2016-04-02gen: Derive clone instead of implementing it for enumsEmilio Cobos Álvarez
Actually they have no risk of not being clone-able, and the output is just nicer.
2016-04-02Silence build warningsEmilio Cobos Álvarez
2016-04-02gen: Remove nasty unused variableEmilio Cobos Álvarez
2016-04-02Don't generate derive(Clone), make a manual impl instead using copyEmilio Cobos Álvarez
This is in order to bypass rustc's limits with large arrays. Still can't work with templates (cc @nox).
2016-03-29gen: Fix opaque struct generation and generate alignment testsEmilio Cobos Álvarez
2016-03-29gen: Take in account alignment when generating untranslatable fieldsEmilio Cobos Álvarez
2016-03-25parser: Generate fields for anonymous unionsEmilio Cobos Álvarez
2016-03-25parser: Ignore functions after vtable calculationsEmilio Cobos Álvarez
This makes us pass three more tests.
2016-03-25gen: Fix anon enums and silence unused mut warningEmilio Cobos Álvarez
2016-03-24gen: Mangle names of inner enumsEmilio Cobos Álvarez
This prevents us changing some gecko types.
2016-03-24gen: Fix size checking, which indeed was correctEmilio Cobos Álvarez
2016-03-24Add option to prevent bitfield method generationEmilio Cobos Álvarez
2016-03-24Disable optimized field generationEmilio Cobos Álvarez
Since it generated invalid output indeed, like in `test/headers/nested.hpp`.
2016-03-24Make opaque types work for members too.Emilio Cobos Álvarez
2016-03-24parser: Nits from trying to implement partial template specialisationEmilio Cobos Álvarez
2016-03-24gen: Ensure all templates use all of their parametersEmilio Cobos Álvarez
2016-03-24gen: Handle correctly namespaced pointers to template parametersEmilio Cobos Álvarez
2016-03-24gen: Generate pending replacementsEmilio Cobos Álvarez
2016-03-24gen: Add size checking for substituted variablesEmilio Cobos Álvarez
2016-03-23gen: Add option to replace types via annotationsEmilio Cobos Álvarez
This is limited to the same namespace, but well, it seems useful enough.
2016-03-23Allow generating opaque types based on layoutEmilio Cobos Álvarez
The best example for this is nsPoint et al.
2016-03-23gen: Don't generate tests for empty structs or classesEmilio Cobos Álvarez
Since the reported size is 1 byte even though it should be 0.
2016-03-23parse: Eagerly resolve array typedefs tooEmilio Cobos Álvarez
This was used in nsString with [char_type; 64].
2016-03-23gen: Generate rust types for stdint typesEmilio Cobos Álvarez
2016-03-23gen: Mangle inner struct names, and don't generate a field for themEmilio Cobos Álvarez
The field generation was plain incorrect
2016-03-23parser: Inherit class typedefsEmilio Cobos Álvarez
2016-03-23Eagerly resolve class typedefs also in pointer membersEmilio Cobos Álvarez
This solves some nsAString problems.
2016-03-23Allow blacklisting typesEmilio Cobos Álvarez
2016-03-21gen: Generate struct layout size testsEmilio Cobos Álvarez
2016-03-21parser: Remove debug infoEmilio Cobos Álvarez
2016-03-21gen: Generate raw fields for non-translatable typesEmilio Cobos Álvarez
2016-03-21parser: Record if a template has non-type template parametersEmilio Cobos Álvarez
2016-03-21gen: Record the non-translatable field struct nameEmilio Cobos Álvarez
2016-03-21clang: Add bindings for function template parametersEmilio Cobos Álvarez