summaryrefslogtreecommitdiffstats
path: root/test/input/OffsetType-cv.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-27 21:44:10 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-21 21:08:13 (GMT)
commit4f01341b13d21eafd476a700632fe6d941bea57c (patch)
tree88ead4f226696bb397e3d763df242a47607480ab /test/input/OffsetType-cv.cxx
parent9759bb5b42be2b6e08a137c89f98c0e3e56d0d3f (diff)
downloadCastXML-4f01341b13d21eafd476a700632fe6d941bea57c.zip
CastXML-4f01341b13d21eafd476a700632fe6d941bea57c.tar.gz
CastXML-4f01341b13d21eafd476a700632fe6d941bea57c.tar.bz2
Output: Generate MethodType and OffsetType elements
Implement the OutputMemberPointerType method. If a type is a pointer to a data member, call a new OutputOffsetType method to generate an OffsetType element representing it directly. If a type is a pointer to a function member, queue a DumpType node that holds the pointee function type and the containing class. Teach the main OutputType method to recognize this case and dispatch to a new OutputMethodType method to generate a MethodType element.
Diffstat (limited to 'test/input/OffsetType-cv.cxx')
-rw-r--r--test/input/OffsetType-cv.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/input/OffsetType-cv.cxx b/test/input/OffsetType-cv.cxx
new file mode 100644
index 0000000..efbc605
--- /dev/null
+++ b/test/input/OffsetType-cv.cxx
@@ -0,0 +1,2 @@
+class A;
+typedef int const volatile A::* const volatile start;