diff options
author | Brad King <brad.king@kitware.com> | 2014-03-18 15:40:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-24 15:37:20 (GMT) |
commit | 95c7a3dea54a7c23bf5fd3a9a7fd5adfe1f45414 (patch) | |
tree | 6712ab58b1ff81fea60c51a9df2e9ea2fca7db5e /test/input | |
parent | fbc3aa539f7db36f949daeb37472b807d48e03c9 (diff) | |
download | CastXML-95c7a3dea54a7c23bf5fd3a9a7fd5adfe1f45414.zip CastXML-95c7a3dea54a7c23bf5fd3a9a7fd5adfe1f45414.tar.gz CastXML-95c7a3dea54a7c23bf5fd3a9a7fd5adfe1f45414.tar.bz2 |
Output: Fix output of forward-declared classes
When adding a dump node for a class, use the class definition, if
available, instead of the canonical declaration. They may not be the
same when a class is forward-declared before it is defined. We need to
use the definition to get all members.
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/Class-forward.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/input/Class-forward.cxx b/test/input/Class-forward.cxx new file mode 100644 index 0000000..38374b6 --- /dev/null +++ b/test/input/Class-forward.cxx @@ -0,0 +1,8 @@ +class start; +class start { +public: + start(); + start(start const&); + start& operator=(start const&); + ~start(); +}; |