Commit Graph

11 Commits

Author SHA1 Message Date
Vadim Petrochenkov aeb69bcc69 Switch default sorting order for items to "None" 2020-10-05 19:57:33 +02:00
Vadim Petrochenkov 56d0799366 Use U'...' character literals instead of L'...' character literals
On Windows `L'...'` is 16 bit, so Rust `char` won't generally fit into it.
2020-10-03 17:34:27 +02:00
Hayes Neuman 967c378308 Support casts in constants 2020-05-26 23:21:28 +02:00
Arnav Singh c6809b00fb Emit documentation on constants (#471)
Fixes #403
2020-02-11 01:51:57 +01:00
John VanEnk eb9cce6934 Update tests/expectations 2020-01-24 11:22:39 +01:00
Jaseem Abid e0fe4e4c44 Add tests for expressions like (0 << SHIFT) | BOOL
Fixes https://github.com/eqrion/cbindgen/issues/412
2019-12-08 12:34:59 +01:00
Emilio Cobos Álvarez 9b5dd80d84 Stop including <uchar.h>, and instead map Rust char to uint32_t.
This is technically a breaking change for C++, unfortunately.

Fixes #423.
2019-12-04 00:03:38 +01:00
Adrian Wong 9b1fd8ecca Fix missing C header for char32_t 2019-12-02 19:55:04 +01:00
Adrian Wong 087d36f32a Map char to char32_t
Rust's `char` is 32 bits wide, but `wchar_t` on Windows is 16.
Avoid truncation by mapping `char` to `char32_t`.
2019-10-04 10:39:31 +02:00
Wodann 24f69ecc9b Update test expecations based on newline change 2019-06-01 10:59:47 +09:00
Wodann 82da3c0afa Add separate test expectations for C headers with C++ compatibility 2019-06-01 10:57:52 +09:00