summaryrefslogtreecommitdiff
path: root/bindgen-integration/cpp/Test.h
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-11-10 20:53:47 -0500
committerGitHub <noreply@github.com>2018-11-10 20:53:47 -0500
commit8489d42c47d46ed63f168cd0c913e5a65c6c942a (patch)
tree4f3d5398ee7ef47b39e6c5475221de26cbd60ce2 /bindgen-integration/cpp/Test.h
parent2a07619ad0aaed985d401dbe9eac2da9d2f32de8 (diff)
parent5b741da6e9a4a0737df37cb04a8adee0d30224df (diff)
Auto merge of #1438 - ekse:item_name, r=emilio
Add item_name parse callback. Issue: #428
Diffstat (limited to 'bindgen-integration/cpp/Test.h')
-rw-r--r--bindgen-integration/cpp/Test.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/bindgen-integration/cpp/Test.h b/bindgen-integration/cpp/Test.h
index 8b9ad8d5..fe9bf0d4 100644
--- a/bindgen-integration/cpp/Test.h
+++ b/bindgen-integration/cpp/Test.h
@@ -178,3 +178,16 @@ struct AutoRestoreBool {
struct WithWChar {
wchar_t foo[30];
};
+
+// The names of the following items are unprefixed by the parse callbacks.
+const int MY_PREFIXED_CONST_VALUE = 3;
+
+int my_prefixed_function_name();
+
+struct my_prefixed_bar {
+ int foo;
+};
+
+struct my_prefixed_foo {
+ my_prefixed_bar member;
+};