summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-27 17:33:15 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-27 17:33:15 (GMT)
commite51382fbcccc390a25d90f2103838c6e979e7e30 (patch)
treee6fbb4495d1eb7d21ccb102db998f5e505c14904 /test
parentbb9a70fd071a7284b641d6aaec86416fd8971f90 (diff)
downloadCastXML-e51382fbcccc390a25d90f2103838c6e979e7e30.zip
CastXML-e51382fbcccc390a25d90f2103838c6e979e7e30.tar.gz
CastXML-e51382fbcccc390a25d90f2103838c6e979e7e30.tar.bz2
Output: Present TypeAlias as Typedef
Treat `using Alias = Original` as `typedef Original Alias` to support such constructs while still generating a gccxml-compatible format. Issue: #89
Diffstat (limited to 'test')
-rw-r--r--test/expect/castxml1.any.TypeAlias.xml.txt5
-rw-r--r--test/expect/gccxml.any.TypeAlias.xml.txt5
2 files changed, 8 insertions, 2 deletions
diff --git a/test/expect/castxml1.any.TypeAlias.xml.txt b/test/expect/castxml1.any.TypeAlias.xml.txt
index 6502658..fd2f699 100644
--- a/test/expect/castxml1.any.TypeAlias.xml.txt
+++ b/test/expect/castxml1.any.TypeAlias.xml.txt
@@ -1,5 +1,8 @@
^<\?xml version="1.0"\?>
<CastXML[^>]*>
- <Namespace id="_1" name="start" context="_2"/>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <Typedef id="_3" name="type" type="_4" context="_1" location="f1:2" file="f1" line="2"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
<Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/TypeAlias.cxx"/>
</CastXML>$
diff --git a/test/expect/gccxml.any.TypeAlias.xml.txt b/test/expect/gccxml.any.TypeAlias.xml.txt
index 763161e..91d1b9f 100644
--- a/test/expect/gccxml.any.TypeAlias.xml.txt
+++ b/test/expect/gccxml.any.TypeAlias.xml.txt
@@ -1,5 +1,8 @@
^<\?xml version="1.0"\?>
<GCC_XML[^>]*>
- <Namespace id="_1" name="start" context="_2"/>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <Typedef id="_3" name="type" type="_4" context="_1" location="f1:2" file="f1" line="2"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
<Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/TypeAlias.cxx"/>
</GCC_XML>$