summaryrefslogtreecommitdiff
path: root/tests/headers/enum.h
AgeCommit message (Collapse)Author
2022-10-04split the repo into a workspaceChristian Poveda
remove `clap` dependency :tada: update the book installation instructions
2021-08-24Use annotations on enumerations: This enables users to add additional ↵Christian Vetter
derives, or prevent deriving traits Fixes #2076
2020-10-16codegen: Allow to not derive Debug on enums.Emilio Cobos Álvarez
Fixes #1899. This code predated all the derive machinery, and always hardcoded its derives. We could avoid hard-coding the other traits, but those seem usually-useful, so leave them there for backwards compat for now.
2020-08-25tests: Improve enum tests to avoid duplication, and add a test for #1880Emilio Cobos Álvarez
2018-07-29Quote regexes in test headersJosh Hejna
When using test-one.sh, unquoted wildcards are expanded by the shell, resulting in failing tests.
2017-09-11Make bindgen generate enums as constants by defaultCldfire
Also simplifies the logic that determines which enum variation gets chosen.
2017-01-23Unify under the `bindgen` name.Emilio Cobos Álvarez
2016-11-16Transition to libbindgen sub-crateJeff Waugh
- The root crate is the `bindgen` binary - Rust-ify the test suite, no more subprocesses! - Update Travis config to test both crates
2015-12-28Translate C enums to Rust enumsMichael Wu
Duplicate values end up as constants of the same enum type. Most enums are repr(u32) as they should, except for those with attribute((packed)), which are of the smallest representation possible.