summaryrefslogtreecommitdiff
path: root/tests/headers/struct_with_bitfields.h
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-08-25 13:13:02 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2016-08-26 14:19:31 -0700
commit182682735aadaad8d0e099b41839fb3b0dcf0fdc (patch)
tree92213df3a8cc828aedf4c55f842fbace96abe402 /tests/headers/struct_with_bitfields.h
parentbc36f9e4779ad01cf1aeabd0c35d1ea2818fe0a6 (diff)
Use docopt for argument parsing
This commit switches bindgen over to using the docopt crate for argument parsing instead of manual argument parsing. This required two notable changes in the arguments and flags style: 1. All flags of the form `-foo` are now of the form `--foo`. 2. We can no longer pass unknown flags straight through to clang. Instead, the user appends `--` after the bindgen flags and input header, after which point any more flags and arguments get collected and passed to clang. This required changes to the test runner and the `// bindgen-flags` comments.
Diffstat (limited to 'tests/headers/struct_with_bitfields.h')
-rw-r--r--tests/headers/struct_with_bitfields.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/headers/struct_with_bitfields.h b/tests/headers/struct_with_bitfields.h
index b994da4e..107fb136 100644
--- a/tests/headers/struct_with_bitfields.h
+++ b/tests/headers/struct_with_bitfields.h
@@ -1,4 +1,4 @@
-// bindgen-flags: -no-unstable-rust
+// bindgen-flags: --no-unstable-rust
struct bitfield {
unsigned short
a :1,