diff options
author | Brad King <brad.king@kitware.com> | 2014-02-27 21:44:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-21 21:08:13 (GMT) |
commit | 4f01341b13d21eafd476a700632fe6d941bea57c (patch) | |
tree | 88ead4f226696bb397e3d763df242a47607480ab /test/input | |
parent | 9759bb5b42be2b6e08a137c89f98c0e3e56d0d3f (diff) | |
download | CastXML-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')
-rw-r--r-- | test/input/MethodType-cv.cxx | 2 | ||||
-rw-r--r-- | test/input/MethodType.cxx | 2 | ||||
-rw-r--r-- | test/input/OffsetType-cv.cxx | 2 | ||||
-rw-r--r-- | test/input/OffsetType.cxx | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/test/input/MethodType-cv.cxx b/test/input/MethodType-cv.cxx new file mode 100644 index 0000000..1ab435d --- /dev/null +++ b/test/input/MethodType-cv.cxx @@ -0,0 +1,2 @@ +class A; +typedef int (A::* const volatile start)(int) const volatile; diff --git a/test/input/MethodType.cxx b/test/input/MethodType.cxx new file mode 100644 index 0000000..2f9e67c --- /dev/null +++ b/test/input/MethodType.cxx @@ -0,0 +1,2 @@ +class A; +typedef int (A::* start)(int); 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; diff --git a/test/input/OffsetType.cxx b/test/input/OffsetType.cxx new file mode 100644 index 0000000..5a030d5 --- /dev/null +++ b/test/input/OffsetType.cxx @@ -0,0 +1,2 @@ +class A; +typedef int A::* start; |