summaryrefslogtreecommitdiff
path: root/tests/headers/class_with_inner_struct.hpp
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/class_with_inner_struct.hpp
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/class_with_inner_struct.hpp')
-rw-r--r--tests/headers/class_with_inner_struct.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/headers/class_with_inner_struct.hpp b/tests/headers/class_with_inner_struct.hpp
index c96b0daf..ec729fe6 100644
--- a/tests/headers/class_with_inner_struct.hpp
+++ b/tests/headers/class_with_inner_struct.hpp
@@ -1,4 +1,4 @@
-// bindgen-flags: -std=c++11
+// bindgen-flags: -- -std=c++11
class A {
unsigned c;