summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-03 16:01:44 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-03 17:06:52 (GMT)
commitae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc (patch)
tree8e661286156f980fa6a7d299eafdd4bf98413f15 /test
parentb663caed7c6603a1b3c08d237174789424c00ed0 (diff)
downloadCastXML-ae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc.zip
CastXML-ae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc.tar.gz
CastXML-ae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc.tar.bz2
Output: Always print name= attribute for function-like elements
Anonymous struct and union types may have constructors and destructors that are also anonymous. Generate `name=""` in such cases because clients expect these function-like elements to have names as gccxml did. Issue: #89
Diffstat (limited to 'test')
-rw-r--r--test/expect/castxml1.any.Class-member-Struct-anonymous.xml.txt6
-rw-r--r--test/expect/castxml1.any.Class-member-Union-anonymous.xml.txt6
-rw-r--r--test/expect/gccxml.any.Class-member-Struct-anonymous.xml.txt6
-rw-r--r--test/expect/gccxml.any.Class-member-Union-anonymous.xml.txt6
-rw-r--r--test/expect/gccxml.any.Typedef-to-Struct-anonymous.xml.txt6
-rw-r--r--test/expect/gccxml.any.Typedef-to-Union-anonymous.xml.txt6
6 files changed, 18 insertions, 18 deletions
diff --git a/test/expect/castxml1.any.Class-member-Struct-anonymous.xml.txt b/test/expect/castxml1.any.Class-member-Struct-anonymous.xml.txt
index 1b5390c..c6eb70d 100644
--- a/test/expect/castxml1.any.Class-member-Struct-anonymous.xml.txt
+++ b/test/expect/castxml1.any.Class-member-Struct-anonymous.xml.txt
@@ -11,14 +11,14 @@
<Argument type="_14" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
<Destructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_9" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_10" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_9" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_10" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
<Argument type="_16" location="f1:3" file="f1" line="3"/>
</Constructor>
<OperatorMethod id="_11" name="=" returns="_17" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_16" location="f1:3" file="f1" line="3"/>
</OperatorMethod>
- <Destructor id="_12" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_12" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
<ElaboratedType id="_13" type="_3"/>
<ReferenceType id="_14" type="_1c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_1c" type="_1" const="1"/>
diff --git a/test/expect/castxml1.any.Class-member-Union-anonymous.xml.txt b/test/expect/castxml1.any.Class-member-Union-anonymous.xml.txt
index 5ac32ac..52c6fb9 100644
--- a/test/expect/castxml1.any.Class-member-Union-anonymous.xml.txt
+++ b/test/expect/castxml1.any.Class-member-Union-anonymous.xml.txt
@@ -11,14 +11,14 @@
<Argument type="_14" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
<Destructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_9" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_10" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_9" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_10" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
<Argument type="_16" location="f1:3" file="f1" line="3"/>
</Constructor>
<OperatorMethod id="_11" name="=" returns="_17" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_16" location="f1:3" file="f1" line="3"/>
</OperatorMethod>
- <Destructor id="_12" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_12" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
<ElaboratedType id="_13" type="_3"/>
<ReferenceType id="_14" type="_1c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_1c" type="_1" const="1"/>
diff --git a/test/expect/gccxml.any.Class-member-Struct-anonymous.xml.txt b/test/expect/gccxml.any.Class-member-Struct-anonymous.xml.txt
index ae46406..e047e5e 100644
--- a/test/expect/gccxml.any.Class-member-Struct-anonymous.xml.txt
+++ b/test/expect/gccxml.any.Class-member-Struct-anonymous.xml.txt
@@ -11,14 +11,14 @@
<Argument type="_13" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
<Destructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_9" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_10" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_9" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_10" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
<Argument type="_15" location="f1:3" file="f1" line="3"/>
</Constructor>
<OperatorMethod id="_11" name="=" returns="_16" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_15" location="f1:3" file="f1" line="3"/>
</OperatorMethod>
- <Destructor id="_12" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_12" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
<ReferenceType id="_13" type="_1c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_1c" type="_1" const="1"/>
<ReferenceType id="_14" type="_1" size="[0-9]+" align="[0-9]+"/>
diff --git a/test/expect/gccxml.any.Class-member-Union-anonymous.xml.txt b/test/expect/gccxml.any.Class-member-Union-anonymous.xml.txt
index 016e51e..731a0bb 100644
--- a/test/expect/gccxml.any.Class-member-Union-anonymous.xml.txt
+++ b/test/expect/gccxml.any.Class-member-Union-anonymous.xml.txt
@@ -11,14 +11,14 @@
<Argument type="_13" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
<Destructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_9" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_10" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_9" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_10" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?>
<Argument type="_15" location="f1:3" file="f1" line="3"/>
</Constructor>
<OperatorMethod id="_11" name="=" returns="_16" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_15" location="f1:3" file="f1" line="3"/>
</OperatorMethod>
- <Destructor id="_12" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_12" name="" context="_3" access="public" location="f1:3" file="f1" line="3" inline="1" artificial="1"( throw="")?/>
<ReferenceType id="_13" type="_1c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_1c" type="_1" const="1"/>
<ReferenceType id="_14" type="_1" size="[0-9]+" align="[0-9]+"/>
diff --git a/test/expect/gccxml.any.Typedef-to-Struct-anonymous.xml.txt b/test/expect/gccxml.any.Typedef-to-Struct-anonymous.xml.txt
index dc34930..d2bc154 100644
--- a/test/expect/gccxml.any.Typedef-to-Struct-anonymous.xml.txt
+++ b/test/expect/gccxml.any.Typedef-to-Struct-anonymous.xml.txt
@@ -2,14 +2,14 @@
<GCC_XML[^>]*>
<Typedef id="_1" name="start" type="_2" context="_3" location="f1:3" file="f1" line="3"/>
<Struct id="_2" name="" context="_3" location="f1:1" file="f1" line="1" members="_4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
- <Constructor id="_4" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_5" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_4" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
<Argument type="_8" location="f1:1" file="f1" line="1"/>
</Constructor>
<OperatorMethod id="_6" name="=" returns="_9" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_8" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
- <Destructor id="_7" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_7" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
<ReferenceType id="_8" type="_2c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_2c" type="_2" const="1"/>
<ReferenceType id="_9" type="_2" size="[0-9]+" align="[0-9]+"/>
diff --git a/test/expect/gccxml.any.Typedef-to-Union-anonymous.xml.txt b/test/expect/gccxml.any.Typedef-to-Union-anonymous.xml.txt
index 97cc258..964d78b 100644
--- a/test/expect/gccxml.any.Typedef-to-Union-anonymous.xml.txt
+++ b/test/expect/gccxml.any.Typedef-to-Union-anonymous.xml.txt
@@ -2,14 +2,14 @@
<GCC_XML[^>]*>
<Typedef id="_1" name="start" type="_2" context="_3" location="f1:3" file="f1" line="3"/>
<Union id="_2" name="" context="_3" location="f1:1" file="f1" line="1" members="_4 _5 _6 _7" size="[0-9]+" align="[0-9]+"/>
- <Constructor id="_4" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
- <Constructor id="_5" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Constructor id="_4" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
<Argument type="_8" location="f1:1" file="f1" line="1"/>
</Constructor>
<OperatorMethod id="_6" name="=" returns="_9" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
<Argument type="_8" location="f1:1" file="f1" line="1"/>
</OperatorMethod>
- <Destructor id="_7" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Destructor id="_7" name="" context="_2" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
<ReferenceType id="_8" type="_2c" size="[0-9]+" align="[0-9]+"/>
<CvQualifiedType id="_2c" type="_2" const="1"/>
<ReferenceType id="_9" type="_2" size="[0-9]+" align="[0-9]+"/>