281 Commits

Author SHA1 Message Date
Johan Anderholm
3a9bb17e8a Modify test to run all three styles for C. 2018-03-27 10:05:45 -05:00
Ryan Hunt
1693519e39 Update test expectations from size_t to uintptr_t changes 2018-03-14 14:40:40 -05:00
Ryan Hunt
cf3529fa84 Don't use extern crate aliases when searching for dependencies 2018-03-14 14:40:40 -05:00
Dan Robertson
0c9c32ecdb Improve module path parsing
If a module has a path attribute use this as the module path to parse.
2018-03-14 13:42:18 -05:00
Dan Robertson
22fa8b0824 Ensure that a constants cfg is preserved
When writing out constants the cfg attribute is not written out around
the defined constant.
2018-03-12 12:44:57 -04:00
Ryan Hunt
e336f80ff8 Update syn to 0.12.6 2018-01-31 23:28:20 -06:00
Ingvar Stepanyan
70d8b95f78 Disallow unknown and conflicting repr markers 2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
f9b8512dc2 Wrap tag into anonymous struct in C++
Fixes #122
2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
0ebcf99d31 Fix wrapper kind for C-like tagged enum
Fixes #126
2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
07eae4c171 Implement support for repr(C, Int)
Fixes #119
2018-01-31 09:35:29 -06:00
Ryan Hunt
33407202e1 Specify --lib with cargo expand and add crate testing 2018-01-29 15:17:23 -06:00
Ryan Hunt
4e481c1338 Add dependencies for tagged enums 2018-01-29 14:08:02 -06:00
Ingvar Stepanyan
bd494d4646 Simplify enum variant handling 2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
3355f2b1ff Rename fields generated by tagged enum 2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
905b9a09aa Add support for repr(C) tagged enums too 2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
3b61c8ead5 Initial support for tagged enums 2018-01-29 11:36:59 -06:00
Kartikaya Gupta
2ccaa3e956 Add a derive_constructor option to generate struct constructors 2018-01-25 12:22:01 -06:00
Mrmaxmeier
d4ae7fcafd update tests 2018-01-10 08:24:14 -06:00
Ryan Hunt
b0d4578214 Fix broken test 2018-01-04 23:30:53 -06:00
Ryan Hunt
60d95258ba Add item renaming, prefixing, force including, and excluding 2018-01-04 23:29:21 -06:00
Ryan Hunt
1ae43feaaf Add the ability to specify additional includes 2018-01-04 17:25:43 -06:00
Ryan Hunt
21d917b723 Check for no_mangle and pub on functions and static items 2018-01-04 14:52:02 -06:00
Ingvar Stepanyan
fada89c7f4 Remove Specialization in favour of generic typedef 2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
4ee1a8bcc8 Remove obsolete template specialization 2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
8fddc5d0a9 Emit generics as native templates in C++ 2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
f0bef30daa Simplify opaque struct output in C
There is no need for a separate forward struct declaration, just like in case with regular structures.
2017-11-16 23:26:07 -06:00
Ryan Hunt
864b4a22f9 Use Parser for single source mode 2017-11-14 02:00:04 -05:00
Ryan Hunt
aa9c20bc03 Do not emit const char* for &str 2017-11-13 23:05:00 -05:00
Ryan Hunt
6a02ec4a7f Commit test expectations 2017-11-09 18:04:22 -05:00
Ryan Hunt
a711eb45b2 Move tests to compile-tests 2017-05-11 01:34:43 -04:00
Ryan Hunt
0aada672cd Add a test harness
Fixes #3
2017-05-11 01:16:27 -04:00